running on localhost #1
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When I run the project locally it won’t load the tapes information correctly. It seems that it thinks the title/id for all of my tapes is
tapes
.composer 2.5.5
php 8.1.31
For example, here’s the cover
<img>
-element for one of the tapes:<img id="tapes" class="covers" src="/assets/audio/tapes/tapes/cover.jpg">
.I’m serving this up by running
php -S localhost:8080
from the root folder (/Users/moiety/Developer/tapes/).Any help would be appreciated :)
The system pulls the titles from the names of the folders under the
tapes
directory, so that's the expected behavior.So if you want the playlist to have a different name, the name of the folder needs to be changed.
Hmm, my folder structure looks like this:
is that correct?
Yeah, that's right.
With that structure, it's saying the title names are "tapes"?
PHP 8.2 is the req, by the way.
[EDIT]
I turned off my nginx server to run it through PHP's local server, and it seems to be pulling everything ok. What is it saying in your terminal when you try to run it?
correct.
ah ok i’ll update date tomorrow. maybe that fixes it :)
thank you for the extra info!
Ok. And let me know what the server says when you load it up and try to run it.
I've been watching for any errors as I run it, but I haven't seen any when using PHP's built-in server.
This is the console output with PHP 8.1. I’ll go ahead an update and see what happens then.
Hmm, I get the same result running PHP 8.4.
I’ll install 8.2 but it seems unlikely that a regression would occur?I get the same result in all PHP versions I’ve tried, including 8.2.It looks like the directory structure for
tapes
is incorrect.It's still reading an additional directory
tapes
although the screen showed it's not in there.I don't know why it's doing that because I can't recreate it on my end.
The only thing I can think of is there is a difference in our set-ups that is causing to look at
tapes
twice, because I don't know where that request is coming from.EDIT
Ok, so I wiped my local setup for the project, cloned it again from the repo, installed the dependencies through composer, added a couple of folders of mp3s under
assets/audio/tapes
, and it started up ok. There has to be some type of subtle difference in how our environments are configured.Hmmm, i’ll try and do a clean install tomorrow, too. maybe that’ll fix it? Thank you for looking into it!