Skip to content

Commit

Permalink
infra: Split hosts.ini into production-hosts.ini and test-hosts.ini
Browse files Browse the repository at this point in the history
This makes it harded to deploy changes to production while trying to
deploy to a test server.
  • Loading branch information
AlexITC committed Oct 7, 2018
1 parent 59a0ab4 commit aeed238
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ Execute the following command to deploy the application:

1. Ensure the web-ui project is pointing to the correct host [environment.prod.ts](../../alerts-ui/src/environments/environment.prod.ts)

2. Execute the following command to deploy the application:
`ansible-playbook -i hosts.ini --ask-become-pass --vault-password-file .vault alerts-ui.yml`
2. Execute the following command to deploy the application to a test server:
`ansible-playbook -i test-hosts.ini --ask-become-pass --vault-password-file .vault alerts-ui.yml`
6 changes: 6 additions & 0 deletions infra/deployment/production-hosts.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[alerts-ui]
cryptocoinalerts.net

[alerts-server]
cryptocoinalerts.net

File renamed without changes.

0 comments on commit aeed238

Please sign in to comment.