Hi,
as mentioned in blog post: http://blog.goforyt.com/laravel-aws-elastic-beanstalk-dev-guide/ it is neccessary to create .ebextensions folder and put files in it. Commit and then push. Thend do: eb deploy
File: 00environmentVariables.config Content: option_settings:
- namespace: aws:elasticbeanstalk:application:environment option_name: APP_ENV value: production
- namespace: aws:elasticbeanstalk:application:environment option_name: APP_KEY value: [key value here]
- namespace: aws:elasticbeanstalk:application:environment option_name: APP_DEBUG value: true
- namespace: aws:elasticbeanstalk:application:environment option_name: APP_LOG_LEVEL value: debug
- namespace: aws:elasticbeanstalk:application:environment option_name: APP_URL value: [hostanme of the Ec2 instance]
- option_name: DB_HOST value: [rds instance name]
- option_name: DB_PORT value: 3306
- option_name: DB_DATABASE value: ebdb
- option_name: DB_USERNAME value: [username here]
- option_name: DB_PASSWORD value: [password here]
And second one: 01artisan.config Content:
container_commands: 01migrateSeed: command: "php artisan migrate"
Please follow instructions how to properly create this file, since they need to be yaml files.
Regards, Damir