Update Amazon EB deployment config.

This commit is contained in:
Christopher Charbonneau Wells 2018-11-04 08:20:05 -08:00
parent 2daeb57780
commit 5e728767cf
1 changed files with 2 additions and 23 deletions

View File

@ -7,20 +7,6 @@ option_settings:
aws:elasticbeanstalk:container:python: aws:elasticbeanstalk:container:python:
WSGIPath: babybuddy/wsgi.py WSGIPath: babybuddy/wsgi.py
commands:
01_remove_outdated_nodejs:
cwd: /tmp
command: 'yum remove -y nodejs npm'
02_node_source_add:
cwd: /tmp
command: 'curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -'
03_npm_install:
cwd: /tmp
command: 'yum -y install nodejs git gcc-c++ make'
04_gulp_install:
cwd: /tmp
command: 'npm install -g gulp-cli'
container_commands: container_commands:
01_pipenv_install: 01_pipenv_install:
command: 'pip install pipenv' command: 'pip install pipenv'
@ -29,15 +15,8 @@ container_commands:
LC_ALL: en_US.utf8 LC_ALL: en_US.utf8
LANG: en_US.utf8 LANG: en_US.utf8
command: 'pipenv install --system --deploy' command: 'pipenv install --system --deploy'
03_npm_install: 03_collectstatic:
command: 'npm install'
04_gulp_build:
env:
LC_ALL: en_US.utf8
LANG: en_US.utf8
command: 'gulp build'
05_collectstatic:
command: 'python manage.py collectstatic --no-input' command: 'python manage.py collectstatic --no-input'
06_migrate: 04_migrate:
command: "python manage.py migrate" command: "python manage.py migrate"
leader_only: true leader_only: true