Skip to content

Commit

Permalink
Setting static port
Browse files Browse the repository at this point in the history
  • Loading branch information
bsommardahl committed Oct 23, 2024
1 parent c51b23d commit 3b3fe34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions util/ansible/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
- name: Update web servers
hosts: ec2
gather_facts: false
environment:
PORT: 80
roles:
- configure-server
- deploy-artifact
2 changes: 1 addition & 1 deletion util/ansible/roles/configure-server/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
dest: "/etc/environment"
state: present
regexp: "^PORT="
line: "PORT={{ PORT }}"
line: "PORT=80"
2 changes: 2 additions & 0 deletions util/ansible/roles/deploy-artifact/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
dest: ~/anyhasher

- name: Start Server
environment:
PORT: 80
shell: "cd ~/anyhasher/build && pm2 restart server.js"

- name: Verify Server
Expand Down

0 comments on commit 3b3fe34

Please sign in to comment.