Table of contents:
00:00 - intro
01:13 - database setup
03:18 - link project from github
04:38 - custom deploy script
06:50 - environment variables
09:00 - custom build and start commands
11:35 - testing out the app
Here is the stoic podcast repo if you'd like to deploy this yourself:
github.com/GringoDotDev/stoic...
Here is a link to the deploy.sh deploy script:
github.com/GringoDotDev/stoic...
Here is the custom start command for laravel octane:
php artisan octane:start --host=0.0.0.0 --port=$PORT --server=roadrunner --max-requests=500 --workers=auto --no-interaction --watch
And here are some environment variables to get you started with railway:
MAINTENANCE_MODE=false
APP_NAME=The Stoic Developer
APP_ENV=production
APP_KEY=FILL_ME_IN
APP_DEBUG=false
APP_URL=${{RAILWAY_PUBLIC_DOMAIN}}
LOG_CHANNEL=stderr
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=pgsql
DATABASE_URL=${{timescale-postgis.DATABASE_URL}}
BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=database
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=mailpit
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=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
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1
VITE_APP_NAME=${APP_NAME}
VITE_PUSHER_APP_KEY=${PUSHER_APP_KEY}
VITE_PUSHER_HOST=${PUSHER_HOST}
VITE_PUSHER_PORT=${PUSHER_PORT}
VITE_PUSHER_SCHEME=${PUSHER_SCHEME}
VITE_PUSHER_APP_CLUSTER=${PUSHER_APP_CLUSTER}
This video is available in Spanish here: • Construyendo una app d...
27 июн 2024