sfx101 / deck

DECK is a powerful and high performant local web development studio, an open source alternative to Docker desktop
https://github.com/deck-app
GNU Affero General Public License v3.0
1.51k stars 71 forks source link

404 Error when creating project with Nginx #55

Closed Adesin-fr closed 2 years ago

Adesin-fr commented 2 years ago

Creating a new Laravel Project, Selected Laravel 8 /Nginx / Php 7.4 Selected an empty folder. The project gets created, starts well, But when browsing the project (testnginx.stacks.run) I get a 404 error.

(BTW, the logs shows incoming traffic when browser hits the page !)

sfx101 commented 2 years ago

Hi @LemarinelNet, thanks for reporting. Could you please send over the generated .env file? Open project in Code editor > copy & paste .env here

Adesin-fr commented 2 years ago

.env seems to be laravel's stock one :

APP_ENV=local
APP_KEY=base64:ToH22mLcsGpjr8XScQpBMLRY8iRJm0w5cm32WZp/Zpc=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DRIVER=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

MEMCACHED_HOST=127.0.0.1

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

and here is the .env of the "dockerfile" section :

SERVER_ROOT=/var/www/public
APP_CODE_PATH_HOST=/home/ludovic/src/testdeck
APP_CODE_CONTAINER_FLAG=:cached
APP_CODE_PATH_LARAVEL=/var/www
PHP_VERSION=7.4
LARAVEL_HOST_HTTP_PORT=41447
DISPLAY_PHPERROR=false
XDEBUG=false
LARAVEL_VERSION=8
BACK_END=nginx
INSTALL_ADDITIONAL_EXTENSIONS=
USER_ID=501
GROUP_ID=20
DATA_PATH_HOST=/home/ludovic/.deck/data/testdeck
NETWORKS_DRIVER=deck-app
DB_NAME=
DB_USER=
DB_PASSWORD=

Haven't touched the project, just created an new project and open in a browser. My OS is Ubuntu 22.04

nabad600 commented 2 years ago

Hi @LemarinelNet, thanks for reporting. Issue is resolved. following the step

  1. Delete old docker base image in your system.
  2. Install Laravel with Selected Laravel 8 /Nginx / Php 7.4

Appreciate your feedback here.