Closed smoreau closed 3 years ago
:wave: Hello @smoreau !
I just wanted to touch base here, oddly enough despite having a dedicated node container it isn't used in (the latest revision of) the setup guide in the project wiki :smile:
I'll be sure to remove that container and remove any mention of it from the wiki :smiley:
The TL;DR of the wiki page is just this
docker run -it -v "`pwd`:/app" -w /app node yarn
docker run -it -v "`pwd`:/app" -w /app node yarn run dev
Hello @austinkregel,
Thank you for your quick reply. To be honest, I didn't know about the wiki page.
I ran the setup guide for docker and the following commands worked perfectly fine:
docker-compose build
docker run -it -v "`pwd`:/app" -w /app node yarn
docker run -it -v "`pwd`:/app" -w /app node yarn run dev
docker-compose up -d
However, when I try to access the page from my browser, I got the following error:
Warning: require(/var/www/html/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/public/index.php on line 24
Fatal error: require(): Failed opening required '/var/www/html/public/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/html/public/index.php on line 24
It looks like the vendor folder has not been populated. Should I run another command to fix that?
@smoreau Oh no! Good catch! I'll add that to the wiki page too! The next steps would be the following:
docker exec -it finance-php composer install
docker exec -it finance-php php artisan storage:link
docker exec -it finance-php php artisan key:generate
docker exec -it finance-php php artisan migrate
(If these steps fail, you may have to manually copy over the .env.example
file to .env
, once that's done repeat starting at the failed step.)
After that you should be able to register an account. If you plan on updating your env to use the redis driver, you'll also need
docker exec -it finance-php php artisan horizon
or if you're using the database driver
docker exec -it finance-php php artisan queue:listen --tries=3
Great! Thanks a lot, I got it to work now.
After cloning the repository, I built the containers and didn't have any issues so far.
Following the documentation, I encountered this first error:
The workaround I used was to run the container using the command:
But then, I got this second issue:
To workaround this second problem, I used the command:
npm install --force
From the documentation, I have to run the "npm run production" command but I got a third issue:
And after all these steps and workaround, it doesn't work. I am not sure what I've done wrong.