AWS CodeDeploy AppSpec: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 7: | Line 7: | ||
* [[AWS_CodeDeploy_Concepts#AppSpec|AWS CodeDeploy Concepts]] | * [[AWS_CodeDeploy_Concepts#AppSpec|AWS CodeDeploy Concepts]] | ||
=Example= | |||
<syntaxhighlight lang='yaml'> | |||
version: 0.0 | |||
os: linux | |||
files: | |||
- source: / | |||
destination: /var/www/html/WordPress | |||
hooks: | |||
BeforeInstall: | |||
- location: scripts/install_dependencies.sh | |||
timeout: 300 | |||
runas: root | |||
AfterInstall: | |||
- location: scripts/change_permissions.sh | |||
timeout: 300 | |||
runas: root | |||
ApplicationStart: | |||
- location: scripts/start_server.sh | |||
- location: scripts/create_test_db.sh | |||
timeout: 300 | |||
runas: root | |||
ApplicationStop: | |||
- location: scripts/stop_server.sh | |||
timeout: 300 | |||
runas: root | |||
</syntaxhighlight> |
Revision as of 19:55, 28 February 2019
External
Internal
Example
version: 0.0
os: linux
files:
- source: /
destination: /var/www/html/WordPress
hooks:
BeforeInstall:
- location: scripts/install_dependencies.sh
timeout: 300
runas: root
AfterInstall:
- location: scripts/change_permissions.sh
timeout: 300
runas: root
ApplicationStart:
- location: scripts/start_server.sh
- location: scripts/create_test_db.sh
timeout: 300
runas: root
ApplicationStop:
- location: scripts/stop_server.sh
timeout: 300
runas: root