Last active
January 10, 2023 12:50
-
-
Save R3quest/28f88d839cd85e8a5cca6543040968be to your computer and use it in GitHub Desktop.
vapor.yml configuration file - Docker runtime
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id: 38773 | |
name: vapor-app | |
environments: | |
production: | |
memory: 1024 | |
cli-memory: 512 | |
runtime: docker # uses /production.Dockerfile | |
database: vapor-app-database # database name - created in Vapor UI | |
build: # runs before deployment | |
- 'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-dev' | |
- 'php artisan event:cache' | |
- 'npm install && npm run build && rm -rf node_modules' | |
deploy: # runs after deployment | |
- 'php artisan migrate --force' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment