Skip to content

Instantly share code, notes, and snippets.

@harrisonde
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harrisonde/79e10a16cb4198ba3eaf to your computer and use it in GitHub Desktop.
Save harrisonde/79e10a16cb4198ba3eaf to your computer and use it in GitHub Desktop.
Laravel 5 and Elastic Beanstalk CLI (workflow)
# Configure EB env
$ eb init
# Build EB env
$ eb create
# If EB version of composer is out of date ... Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/10_composer_install.sh failed
# Check eb logs and confirm, the fix is manually run.
$ eb logs
$ eb ssh
ec2-user$ sudo php /opt/elasticbeanstalk/support/composer.phar self-update
$ exit
$ eb deploy
$ eb ssh
$ cd /var/www/html
$ sudo php /opt/elasticbeanstalk/support/composer.phar install
# You may specify the configuration environment that should be used --env= #name-of-environment
$ sudo php artisan migrate:install
#or
$ sudo php artisan migrate:resfresh
# Seed the database
$ sudo php artisan db:seed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment