Sobak / pastebin

Simple pastebin script
http://paste.sobak.pl
4 stars 4 forks source link

failed to open stream #44

Open v2less opened 6 months ago

v2less commented 6 months ago
docker compose logs app
pastebin-app-1  | [29-Apr-2024 10:20:34] NOTICE: fpm is running, pid 1
pastebin-app-1  | [29-Apr-2024 10:20:34] NOTICE: ready to handle connections
pastebin-app-1  | NOTICE: PHP message: PHP Warning:  require(/var/www/app/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/app/public/index.php on line 34
pastebin-app-1  | NOTICE: PHP message: PHP Fatal error:  require(): Failed opening required '/var/www/app/public/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/app/public/index.php on line 34
pastebin-app-1  | 172.31.0.5 -  29/Apr/2024:10:20:41 +0200 "GET /index.php" 200
pastebin-app-1  | 172.31.0.5 -  29/Apr/2024:10:20:46 +0200 "GET /index.php" 200
pastebin-app-1  | NOTICE: PHP message: PHP Warning:  require(/var/www/app/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/app/public/index.php on line 34
pastebin-app-1  | NOTICE: PHP message: PHP Fatal error:  require(): Failed opening required '/var/www/app/public/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/app/public/index.php on line 34
pastebin-app-1  | NOTICE: PHP message: PHP Warning:  require(/var/www/app/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/app/public/index.php on line 34
pastebin-app-1  | NOTICE: PHP message: PHP Fatal error:  require(): Failed opening required '/var/www/app/public/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/app/public/index.php on line 34
pastebin-app-1  | 172.31.0.5 -  29/Apr/2024:10:20:48 +0200 "GET /index.php" 200
pastebin-app-1  | 172.31.0.5 -  29/Apr/2024:10:20:48 +0200 "GET /index.php" 200
pastebin-app-1  | NOTICE: PHP message: PHP Warning:  require(/var/www/app/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/app/public/index.php on line 34
pastebin-app-1  | NOTICE: PHP message: PHP Fatal error:  require(): Failed opening required '/var/www/app/public/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/app/public/index.php on line 34
pastebin-app-1  | NOTICE: PHP message: PHP Warning:  require(/var/www/app/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/app/public/index.php on line 34
pastebin-app-1  | NOTICE: PHP message: PHP Fatal error:  require(): Failed opening required '/var/www/app/public/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/app/public/index.php on line 34
pastebin-app-1  | 172.31.0.5 -  29/Apr/2024:10:20:49 +0200 "GET /index.php" 200
pastebin-app-1  | NOTICE: PHP message: PHP Warning:  require(/var/www/app/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/app/public/index.php on line 34
pastebin-app-1  | NOTICE: PHP message: PHP Fatal error:  require(): Failed opening required '/var/www/app/public/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/app/public/index.php on line 34
pastebin-app-1  | 172.31.0.5 -  29/Apr/2024:10:20:49 +0200 "GET /index.php" 200
Sobak commented 6 months ago

Hi @v2less, thanks for checking out!

Please go into the container (docker compose exec --user=app app bash) and run composer install. Also, as per readme you will have to run php artisan migrate in the container as well.

Then you will have to go into the container with nodejs intalled (docker compose exec node bash) and run yarn dev (or yarn prod if you intend to use it on production - but the docker setup contained in the repository is prepared strictly with local development in mind!)

Please let me know if these worked and then I'll clarify the readme further. I realized now it might have been a little bit unclear.