Skip to content

Instantly share code, notes, and snippets.

@euharrison
Created November 12, 2015 21:55
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save euharrison/f6ea7dd42f5e6954517c to your computer and use it in GitHub Desktop.
Save euharrison/f6ea7dd42f5e6954517c 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