-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add initial eb config files * Fix import error * Fix db backend * Add custom middleware for ELB healthcheck & container commands * Add container commands for frontend * Fix eb extension configs * Fix frontend eb extension config command * Run npm i as root * Remove problematic commands * Increase eb timeout * Run frontend build command as root * Change ec2 instances type to t2.medium * Changes for new eb environment * Add aws health check middleware * Fix ws connection path & health check middleware
- Loading branch information
1 parent
ac126a5
commit 64e278b
Showing
17 changed files
with
956 additions
and
324 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
option_settings: | ||
aws:elasticbeanstalk:application:environment: | ||
DJANGO_SETTINGS_MODULE: mysterio.settings.production | ||
aws:elbv2:listener:80: | ||
DefaultProcess: http | ||
ListenerEnabled: 'true' | ||
Protocol: HTTP | ||
Rules: ws | ||
aws:elbv2:listenerrule:ws: | ||
PathPatterns: /ws/* | ||
Process: websocket | ||
Priority: 1 | ||
aws:elasticbeanstalk:environment:process:http: | ||
Port: '80' | ||
Protocol: HTTP | ||
aws:elasticbeanstalk:environment:process:websocket: | ||
Port: '5000' | ||
Protocol: HTTP | ||
|
||
container_commands: | ||
02_migrate: | ||
command: "source /var/app/venv/*/bin/activate && python manage.py migrate" | ||
leader_only: true | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
option_settings: | ||
- namespace: aws:elasticbeanstalk:command | ||
option_name: Timeout | ||
value: 2000 | ||
|
||
option_settings: | ||
aws:ec2:instances: | ||
InstanceTypes: 't2.medium' |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
container_commands: | ||
01_node_install: | ||
command: "curl -sL https://rpm.nodesource.com/setup_16.x | sudo bash - && sudo yum -y install nodejs" | ||
02_npm_install: | ||
command: "cd frontend && sudo npm install" | ||
03_npm_build: | ||
command: "cd frontend && sudo npm run build" | ||
04_collectstatic: | ||
command: "source /var/app/venv/*/bin/activate && python manage.py collectstatic --noinput" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
packages: | ||
yum: | ||
postgresql-devel: [] |
This file contains 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
This file contains 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
Oops, something went wrong.