Last active
August 29, 2015 14:20
-
-
Save harrisonde/79e10a16cb4198ba3eaf to your computer and use it in GitHub Desktop.
Laravel 5 and Elastic Beanstalk CLI (workflow)
This file contains hidden or 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
# 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