Skip to content

Instantly share code, notes, and snippets.

@byrmylmz
Forked from euharrison/01composer.config
Created November 10, 2021 08:25
Show Gist options
  • Save byrmylmz/76b2c7852fedc008aba7a7a209393a11 to your computer and use it in GitHub Desktop.
Save byrmylmz/76b2c7852fedc008aba7a7a209393a11 to your computer and use it in GitHub Desktop.
.ebextensions Laravel
commands:
01-update-composer:
command: export COMPOSER_HOME=/root && /usr/bin/composer.phar self-update
option_settings:
- namespace: aws:elasticbeanstalk:application:environment
option_name: COMPOSER_HOME
value: /root
container_commands:
01-optimize:
command: "/usr/bin/composer.phar dump-autoload --optimize"
container_commands:
01-migrate:
command: "php artisan migrate:refresh --force"
02-seed:
command: "php artisan db:seed --force"
commands:
01-install-node:
command: "yum install nodejs npm --enablerepo=epel -y"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment