NoAgenda / website

Official website of The No Agenda Show. A twice weekly media deconstruction podcast by Adam Curry and John C. Dvorak.
MIT License
30 stars 8 forks source link

Root image path not resolvable "/srv/app/docker/storage/covers #72

Open tacman opened 10 months ago

tacman commented 10 months ago

I couldn't clear the cache running the basic git clone .. && composer install.

So I ran docker, but it's still can't solve that path (hard-coded for liip_imagine).

Can you tweak the application so that it runs without needing docker or specific file/directories system?

Thx.

codedmonkey commented 10 months ago

You should be able to change the storage directory by adding APP_STORAGE_PATH=/your/directory to your .env.local-file.

tacman commented 10 months ago

Thanks, that helps.

But I'm still running into issues loading the fixtures, because the directories don't exist.

The Dockerfile creates them:

        docker/storage/chapters \
        docker/storage/chat_archives \
        docker/storage/chat_logs \
        docker/storage/covers \
        docker/storage/episode_parts \
        docker/storage/episodes \
        docker/storage/livestream_recordings \
        docker/storage/shownotes \
        docker/storage/transcripts \

But I'm wondering if there's a better way, like creating the directories when the fixtures are loaded or some other initialization process.

I'd like to run the application without running docker, here's my simple install

git clone git@github.com:NoAgenda/website.git no-agenda && cd no-agenda
cat > .env.local << 'END'
APP_STORAGE_PATH=./.storage
DATABASE_URL=sqlite:///%kernel.project_dir%/no-agenda.db
END

composer install
Script assets:build returned with error code 1
!!  
!!  In FileSystemLocator.php line 96:
!!                                                        
!!    Root image path not resolvable "./.storage/covers"  
tacman commented 10 months ago

so assets:build could create the directory if it doesn't exist? Because the next step is syncing, right?

tacman commented 9 months ago

Thoughts on how to install without docker? I can tweak assets:build, but I'm not sure that's the right place for it.

codedmonkey commented 9 months ago

I had to refresh my memory for this one. Like you mentioned, the covers directory simply needs to exist for LiipImagine to function.

I don't have any problem with running the website without Docker. I choose to fully use Docker because it keeps the dev environment very similar to production, including MySQL container and those things. But I'm starting to change my mind on how to run my projects locally so I'm open to making changes. For now, I don't dislike the Docker setup so it's still my preferred way.

Looking at your install script, would one of the following two workarounds be of help?

cat > .env.local << 'END'
APP_STORAGE_PATH=%kernel.project_dir%/.storage
# or
APP_STORAGE_PATH=${PWD}/.storage
END

Or am I still misunderstanding your problem?

tacman commented 9 months ago

The problem isn't the path to storage, it's that if the subdirectories in storage don't exist, and they're required.

My hack to to manually do mkdir (storagepath)/covers, etc.

On Tue, Dec 12, 2023 at 2:39 PM Tim Goudriaan @.***> wrote:

I had to refresh my memory for this one. Like you mentioned, the covers directory simply needs to exist for LiipImagine to function.

I don't have any problem with running the website without Docker. I choose to fully use Docker because it keeps the dev environment very similar to production, including MySQL container and those things. But I'm starting to change my mind on how to run my projects locally so I'm open to making changes. For now, I don't dislike the Docker setup so it's still my preferred way.

Looking at your install script, would one of the following two workarounds be of help?

cat > .env.local << 'END' APP_STORAGE_PATH=%kernel.project_dir%/.storage

or

APP_STORAGE_PATH=${PWD}/.storage END

Or am I still misunderstanding your problem?

— Reply to this email directly, view it on GitHub https://github.com/NoAgenda/website/issues/72#issuecomment-1852688508, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEXIQM2R2EEKBDJM6CWXG3YJCXFXAVCNFSM6AAAAABAHPQI6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJSGY4DQNJQHA . You are receiving this because you authored the thread.Message ID: @.***>