diff --git a/Dockerfile b/Dockerfile index a0ab115b6..dc976e3db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -395,10 +395,10 @@ ENV sintonia_user=${sintonia_user} ### Start server CMD cron && \ - php artisan key:generate && \ git config --global --add safe.directory /var/www/sintonia_webapp && \ /home/$sintonia_user/composer install --no-progress --no-interaction && \ /home/$sintonia_user/composer --no-cache dump-autoload --no-interaction && \ + php artisan key:generate && \ php artisan migrate && \ php artisan db:seed RolesAndPermissionsSeeder && \ php artisan schedule:run >> /dev/null 2>&1 && \ diff --git a/dev/sintonia-webapp/laravel/.env.dev.example b/dev/sintonia-webapp/laravel/.env.dev similarity index 94% rename from dev/sintonia-webapp/laravel/.env.dev.example rename to dev/sintonia-webapp/laravel/.env.dev index f02f94198..5a44b4c0a 100644 --- a/dev/sintonia-webapp/laravel/.env.dev.example +++ b/dev/sintonia-webapp/laravel/.env.dev @@ -1,6 +1,6 @@ APP_NAME=Sintonia APP_ENV=local -APP_KEY= +APP_KEY=base64:RQTnQgctAQs3iq1MK9ZviM0IOgaCqw9jqUlx0KUp6HE= APP_DEBUG=true APP_TIMEZONE=UTC APP_URL=http://127.0.0.1:9876 diff --git a/docker/sintonia-webapp/laravel/.env.production.example b/docker/sintonia-webapp/laravel/.env.production.example deleted file mode 100644 index a640b85b9..000000000 --- a/docker/sintonia-webapp/laravel/.env.production.example +++ /dev/null @@ -1,76 +0,0 @@ -APP_NAME=Sintonia -APP_ENV=local -APP_KEY= -APP_DEBUG=false -APP_TIMEZONE=UTC -APP_URL=http://127.0.0.1:9876 -SANCTUM_STATEFUL_DOMAINS=http://127.0.0.1 - -APP_LOCALE=en -APP_FALLBACK_LOCALE=en -APP_FAKER_LOCALE=en_US - -APP_MAINTENANCE_DRIVER=file -# APP_MAINTENANCE_STORE=database -HASH_VERIFY=false -TELESCOPE_ENABLED=true -PHP_CLI_SERVER_WORKERS=4 - -BCRYPT_ROUNDS=12 - -LOG_CHANNEL=stack -LOG_STACK=single -LOG_DEPRECATIONS_CHANNEL=null -LOG_LEVEL=debug - -DB_CONNECTION=pgsql -DB_HOST=postgres -DB_PORT=5432 -DB_DATABASE=libretime -DB_USERNAME=libretime -DB_PASSWORD=libretime - -SESSION_DRIVER=cookie -SESSION_LIFETIME=120 -SESSION_ENCRYPT=false -SESSION_PATH=/ -SESSION_DOMAIN=127.0.0.1 - -BROADCAST_CONNECTION=log -FILESYSTEM_DISK=local - -CACHE_STORE=database -CACHE_PREFIX= - -MEMCACHED_HOST=127.0.0.1 - -REDIS_CLIENT=phpredis -REDIS_HOST=127.0.0.1 -REDIS_PASSWORD=null -REDIS_PORT=6379 - -MAIL_MAILER=log -MAIL_SCHEME=null -MAIL_HOST=127.0.0.1 -MAIL_PORT=2525 -MAIL_USERNAME=null -MAIL_PASSWORD=null -MAIL_FROM_ADDRESS="hello@example.com" -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 - -VITE_APP_NAME="${APP_NAME}" - -QUEUE_CONNECTION=rabbitmq -RABBITMQ_HOST=rabbitmq -RABBITMQ_PORT=5672 -RABBITMQ_VHOST=/libretime -RABBITMQ_LOGIN=libretime -RABBITMQ_PASSWORD=libretime - -VITE_APP_TIMEZONE=UTC \ No newline at end of file