mirror of
https://github.com/GSA/notifications-api.git
synced 2026-04-21 01:40:00 -04:00
Adding AWS code deploy files
- app spec file forms basis of application deploy - various AWS specific files to install dependencies and call upstart for start and stop application
This commit is contained in:
23
appspec.yml
Normal file
23
appspec.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
files:
|
||||
-
|
||||
destination: /home/ubuntu/notifications-api
|
||||
source: /
|
||||
hooks:
|
||||
AfterInstall:
|
||||
-
|
||||
location: scripts/aws_install_dependencies.sh
|
||||
runas: root
|
||||
timeout: 300
|
||||
ApplicationStart:
|
||||
-
|
||||
location: scripts/aws_start_app.sh
|
||||
runas: root
|
||||
timeout: 300
|
||||
ApplicationStop:
|
||||
-
|
||||
location: scripts/aws_stop_app.sh
|
||||
runas: root
|
||||
timeout: 300
|
||||
os: linux
|
||||
version: 0.0
|
||||
1
scripts/aws_install_dependencies.sh
Normal file
1
scripts/aws_install_dependencies.sh
Normal file
@@ -0,0 +1 @@
|
||||
pip install -r /home/ubuntu/notifications-api/requirements.txt
|
||||
5
scripts/aws_start_app.sh
Normal file
5
scripts/aws_start_app.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Starting application"
|
||||
cd ~/notifications-api/;
|
||||
sudo service notifications-api start
|
||||
5
scripts/aws_stop_app.sh
Normal file
5
scripts/aws_stop_app.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Stopping application"
|
||||
cd ~/notifications-api/;
|
||||
sudo service notifications-api stop
|
||||
Reference in New Issue
Block a user