Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tacman opened this issue Dec 5, 2023 · 6 comments
Open

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

tacman opened this issue Dec 5, 2023 · 6 comments

Comments

@tacman
Copy link
Contributor

tacman commented Dec 5, 2023

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
Copy link
Member

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

@tacman
Copy link
Contributor Author

tacman commented Dec 7, 2023

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
Copy link
Contributor Author

tacman commented Dec 7, 2023

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

@tacman
Copy link
Contributor Author

tacman commented Dec 8, 2023

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
Copy link
Member

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
Copy link
Contributor Author

tacman commented Dec 12, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants