Build db migration codedeploy artifact

This commit is contained in:
bandesz
2016-09-20 11:49:01 +01:00
parent d69a07fed9
commit 8ab7fa3395
9 changed files with 95 additions and 116 deletions

18
appspec-db-migration.yml Normal file
View File

@@ -0,0 +1,18 @@
---
os: linux
version: 0.0
files:
- destination: /home/notify-app/notifications-api
source: /
hooks:
AfterInstall:
- location: scripts/aws_install_dependencies.sh
runas: root
timeout: 1000
- location: scripts/aws_change_ownership.sh
runas: root
timeout: 300
ApplicationStart:
- location: scripts/aws_run_db_migrations.sh
runas: root
timeout: 300