running on localhost #1

Open
opened 2025-03-07 03:31:45 -06:00 by Moiety · 7 comments

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 :)

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 :)
Owner

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.

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.
Author

Hmm, my folder structure looks like this:

nested folders for assets > aduio > tapes > two subfolders

is that correct?

Hmm, my folder structure looks like this: ![nested folders for assets > aduio > tapes > two subfolders](/attachments/4d16e8b2-39af-4e16-be3c-02ce910902a0) is that correct?
Owner

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?

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?
Author

With that structure, it's saying the title names are "tapes"?

correct.

PHP 8.2 is the req, by the way.

ah ok i’ll update date tomorrow. maybe that fixes it :)

thank you for the extra info!

> With that structure, it's saying the title names are "tapes"? correct. > PHP 8.2 is the req, by the way. ah ok i’ll update date tomorrow. maybe that fixes it :) thank you for the extra info!
Owner

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.

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.
Author

This is the console output with PHP 8.1. I’ll go ahead an update and see what happens then.

moiety at Saturn.local in [~/Developer/tapes]  on git:favicon ✔︎  f6c6931 "feat: add a favicon"
10:06:58 › php -S localhost:8080
[Sat Mar  8 10:07:01 2025] PHP 8.1.31 Development Server (http://localhost:8080) started
[Sat Mar  8 10:07:07 2025] [::1]:63413 Accepted
[Sat Mar  8 10:07:07 2025] [::1]:63414 Accepted
[Sat Mar  8 10:07:07 2025] [::1]:63413 [200]: GET /
[Sat Mar  8 10:07:07 2025] [::1]:63413 Closing
[Sat Mar  8 10:07:07 2025] [::1]:63414 [200]: GET /assets/css/front/start.css?=sdfsdf
[Sat Mar  8 10:07:07 2025] [::1]:63415 Accepted
[Sat Mar  8 10:07:07 2025] [::1]:63416 Accepted
[Sat Mar  8 10:07:07 2025] [::1]:63417 Accepted
[Sat Mar  8 10:07:07 2025] [::1]:63414 Closing
[Sat Mar  8 10:07:07 2025] [::1]:63415 [200]: GET /assets/script/Start.js
[Sat Mar  8 10:07:07 2025] [::1]:63416 [200]: GET /assets/images/global/logo-primary.png
[Sat Mar  8 10:07:07 2025] [::1]:63417 [200]: GET /assets/images/global/btn_back.png
[Sat Mar  8 10:07:07 2025] [::1]:63415 Closing
[Sat Mar  8 10:07:07 2025] [::1]:63416 Closing
[Sat Mar  8 10:07:07 2025] [::1]:63417 Closing
[Sat Mar  8 10:07:08 2025] [::1]:63422 Accepted
[Sat Mar  8 10:07:08 2025] [::1]:63423 Accepted
[Sat Mar  8 10:07:08 2025] [::1]:63422 [200]: GET /assets/images/global/btn_forward.png
[Sat Mar  8 10:07:08 2025] [::1]:63424 Accepted
[Sat Mar  8 10:07:08 2025] [::1]:63423 [404]: GET /assets/audio/tapes/tapes/cover.jpg - No such file or directory
[Sat Mar  8 10:07:08 2025] [::1]:63425 Accepted
[Sat Mar  8 10:07:08 2025] [::1]:63423 Closing
[Sat Mar  8 10:07:08 2025] [::1]:63424 [200]: GET /assets/css/global/colors.css
[Sat Mar  8 10:07:08 2025] [::1]:63426 Accepted
[Sat Mar  8 10:07:08 2025] [::1]:63422 Closing
[Sat Mar  8 10:07:08 2025] [::1]:63425 [200]: GET /assets/css/global/forms.css
[Sat Mar  8 10:07:08 2025] [::1]:63427 Accepted
[Sat Mar  8 10:07:08 2025] [::1]:63426 [200]: GET /assets/css/global/typography.css
[Sat Mar  8 10:07:08 2025] [::1]:63428 Accepted
[Sat Mar  8 10:07:08 2025] [::1]:63427 [200]: GET /assets/css/global/frame.css
[Sat Mar  8 10:07:08 2025] [::1]:63424 Closing
[Sat Mar  8 10:07:08 2025] [::1]:63425 Closing
[Sat Mar  8 10:07:08 2025] [::1]:63428 [200]: GET /assets/css/front/index.css
[Sat Mar  8 10:07:08 2025] [::1]:63426 Closing
[Sat Mar  8 10:07:08 2025] [::1]:63427 Closing
[Sat Mar  8 10:07:08 2025] [::1]:63428 Closing
[Sat Mar  8 10:07:08 2025] [::1]:63429 Accepted
[Sat Mar  8 10:07:08 2025] [::1]:63429 [404]: GET /assets/audio/tapes/tapes/cover.jpg - No such file or directory
[Sat Mar  8 10:07:08 2025] [::1]:63429 Closing
[Sat Mar  8 10:07:08 2025] [::1]:63430 Accepted
[Sat Mar  8 10:07:08 2025] [::1]:63431 Accepted
[Sat Mar  8 10:07:08 2025] [::1]:63432 Accepted
[Sat Mar  8 10:07:08 2025] [::1]:63430 [200]: GET /assets/css/global/fonts/ahg/AlteHaasGroteskBold.ttf
[Sat Mar  8 10:07:08 2025] [::1]:63431 [200]: GET /assets/css/global/fonts/ahg/AlteHaasGroteskRegular.ttf
[Sat Mar  8 10:07:08 2025] [::1]:63432 [200]: GET /assets/script/TapeDeck.js
[Sat Mar  8 10:07:08 2025] [::1]:63430 Closing
[Sat Mar  8 10:07:08 2025] [::1]:63432 Closing
[Sat Mar  8 10:07:08 2025] [::1]:63431 Closing
[Sat Mar  8 10:07:08 2025] [::1]:63433 Accepted
[Sat Mar  8 10:07:08 2025] [::1]:63433 [200]: GET /assets/script/RecordPlayer.js
[Sat Mar  8 10:07:08 2025] [::1]:63433 Closing
[Sat Mar  8 10:07:08 2025] [::1]:63434 Accepted
[Sat Mar  8 10:07:08 2025] [::1]:63434 [200]: GET /api/tapes/list
[Sat Mar  8 10:07:08 2025] [::1]:63434 Closing
[Sat Mar  8 10:07:08 2025] [::1]:63435 Accepted
[Sat Mar  8 10:07:08 2025] [::1]:63435 [200]: GET /assets/images/global/favicon.png
[Sat Mar  8 10:07:08 2025] [::1]:63435 Closing
This is the console output with PHP 8.1. I’ll go ahead an update and see what happens then. ``` moiety at Saturn.local in [~/Developer/tapes] on git:favicon ✔︎ f6c6931 "feat: add a favicon" 10:06:58 › php -S localhost:8080 [Sat Mar 8 10:07:01 2025] PHP 8.1.31 Development Server (http://localhost:8080) started [Sat Mar 8 10:07:07 2025] [::1]:63413 Accepted [Sat Mar 8 10:07:07 2025] [::1]:63414 Accepted [Sat Mar 8 10:07:07 2025] [::1]:63413 [200]: GET / [Sat Mar 8 10:07:07 2025] [::1]:63413 Closing [Sat Mar 8 10:07:07 2025] [::1]:63414 [200]: GET /assets/css/front/start.css?=sdfsdf [Sat Mar 8 10:07:07 2025] [::1]:63415 Accepted [Sat Mar 8 10:07:07 2025] [::1]:63416 Accepted [Sat Mar 8 10:07:07 2025] [::1]:63417 Accepted [Sat Mar 8 10:07:07 2025] [::1]:63414 Closing [Sat Mar 8 10:07:07 2025] [::1]:63415 [200]: GET /assets/script/Start.js [Sat Mar 8 10:07:07 2025] [::1]:63416 [200]: GET /assets/images/global/logo-primary.png [Sat Mar 8 10:07:07 2025] [::1]:63417 [200]: GET /assets/images/global/btn_back.png [Sat Mar 8 10:07:07 2025] [::1]:63415 Closing [Sat Mar 8 10:07:07 2025] [::1]:63416 Closing [Sat Mar 8 10:07:07 2025] [::1]:63417 Closing [Sat Mar 8 10:07:08 2025] [::1]:63422 Accepted [Sat Mar 8 10:07:08 2025] [::1]:63423 Accepted [Sat Mar 8 10:07:08 2025] [::1]:63422 [200]: GET /assets/images/global/btn_forward.png [Sat Mar 8 10:07:08 2025] [::1]:63424 Accepted [Sat Mar 8 10:07:08 2025] [::1]:63423 [404]: GET /assets/audio/tapes/tapes/cover.jpg - No such file or directory [Sat Mar 8 10:07:08 2025] [::1]:63425 Accepted [Sat Mar 8 10:07:08 2025] [::1]:63423 Closing [Sat Mar 8 10:07:08 2025] [::1]:63424 [200]: GET /assets/css/global/colors.css [Sat Mar 8 10:07:08 2025] [::1]:63426 Accepted [Sat Mar 8 10:07:08 2025] [::1]:63422 Closing [Sat Mar 8 10:07:08 2025] [::1]:63425 [200]: GET /assets/css/global/forms.css [Sat Mar 8 10:07:08 2025] [::1]:63427 Accepted [Sat Mar 8 10:07:08 2025] [::1]:63426 [200]: GET /assets/css/global/typography.css [Sat Mar 8 10:07:08 2025] [::1]:63428 Accepted [Sat Mar 8 10:07:08 2025] [::1]:63427 [200]: GET /assets/css/global/frame.css [Sat Mar 8 10:07:08 2025] [::1]:63424 Closing [Sat Mar 8 10:07:08 2025] [::1]:63425 Closing [Sat Mar 8 10:07:08 2025] [::1]:63428 [200]: GET /assets/css/front/index.css [Sat Mar 8 10:07:08 2025] [::1]:63426 Closing [Sat Mar 8 10:07:08 2025] [::1]:63427 Closing [Sat Mar 8 10:07:08 2025] [::1]:63428 Closing [Sat Mar 8 10:07:08 2025] [::1]:63429 Accepted [Sat Mar 8 10:07:08 2025] [::1]:63429 [404]: GET /assets/audio/tapes/tapes/cover.jpg - No such file or directory [Sat Mar 8 10:07:08 2025] [::1]:63429 Closing [Sat Mar 8 10:07:08 2025] [::1]:63430 Accepted [Sat Mar 8 10:07:08 2025] [::1]:63431 Accepted [Sat Mar 8 10:07:08 2025] [::1]:63432 Accepted [Sat Mar 8 10:07:08 2025] [::1]:63430 [200]: GET /assets/css/global/fonts/ahg/AlteHaasGroteskBold.ttf [Sat Mar 8 10:07:08 2025] [::1]:63431 [200]: GET /assets/css/global/fonts/ahg/AlteHaasGroteskRegular.ttf [Sat Mar 8 10:07:08 2025] [::1]:63432 [200]: GET /assets/script/TapeDeck.js [Sat Mar 8 10:07:08 2025] [::1]:63430 Closing [Sat Mar 8 10:07:08 2025] [::1]:63432 Closing [Sat Mar 8 10:07:08 2025] [::1]:63431 Closing [Sat Mar 8 10:07:08 2025] [::1]:63433 Accepted [Sat Mar 8 10:07:08 2025] [::1]:63433 [200]: GET /assets/script/RecordPlayer.js [Sat Mar 8 10:07:08 2025] [::1]:63433 Closing [Sat Mar 8 10:07:08 2025] [::1]:63434 Accepted [Sat Mar 8 10:07:08 2025] [::1]:63434 [200]: GET /api/tapes/list [Sat Mar 8 10:07:08 2025] [::1]:63434 Closing [Sat Mar 8 10:07:08 2025] [::1]:63435 Accepted [Sat Mar 8 10:07:08 2025] [::1]:63435 [200]: GET /assets/images/global/favicon.png [Sat Mar 8 10:07:08 2025] [::1]:63435 Closing ```
Author

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.

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.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: are0h/tapes#1
No description provided.