Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
Deploy update (#570)
Browse files Browse the repository at this point in the history
* Update with new username for prod servers

* Update grunt location

* Moved server to home folder

* Update image path
  • Loading branch information
agundy authored and kmcnellis committed Jan 31, 2017
1 parent 4b4602a commit 24b8646
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
10 changes: 6 additions & 4 deletions deploy/deploy.yml
@@ -1,16 +1,18 @@
- hosts: rcos
remote_user: root
remote_user: deploy
gather_facts: false
vars:
- log_file: "/opt/observatory.log"
- server_dir: "/opt/observatory/"
- log_file: "/home/deploy/observatory.log"
- server_dir: "/home/deploy/observatory/"
- port: 8443
tasks:
- local_action: shell npm install

- local_action: shell grunt build --force

- synchronize:
src: ../dist/
dest: /opt/observatory
dest: "{{ server_dir }}"

- shell: "forever stopall"
args:
Expand Down
6 changes: 4 additions & 2 deletions deploy/initialize.yml
@@ -1,6 +1,6 @@
- hosts: rcos
remote_user: root
gather_facts: true
gather_facts: false
vars:
nodejs_version: "4.x"
domain_name: dev.rcos.io
Expand All @@ -10,7 +10,9 @@
- mongodb
pre_tasks:
- name: 'install python2'
raw: sudo apt-get -y install python
raw: apt-get -y -qq install python
- name: 'gather facts'
setup:
tasks:
- name: Install forever
npm: name=forever global=yes state=latest
Expand Down
6 changes: 3 additions & 3 deletions deploy/roles/nginx/tasks/main.yml
Expand Up @@ -11,9 +11,9 @@
state: latest

- name: Create Diffe Helman Key File
command: openssl dhparam -out /home/rcos/dhparams.pem 2048
command: openssl dhparam -out /home/deploy/dhparams.pem 2048
args:
creates: /home/rcos/dhparams.pem
creates: /home/deploy/dhparams.pem

- name: ensure default nginx config is removed
file:
Expand All @@ -32,5 +32,5 @@
- name: copy the lets encrypt script over
template:
src: letsencrypt.sh.j2
dest: /home/rcos/letsencrypt.sh
dest: /home/deploy/letsencrypt.sh
mode: 0774
2 changes: 1 addition & 1 deletion deploy/roles/nginx/templates/nginx.conf.j2
Expand Up @@ -18,7 +18,7 @@ server {

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
ssl_dhparam /home/rcos/dhparams.pem;
ssl_dhparam /home/deploy/dhparams.pem;

ssl_prefer_server_ciphers on;

Expand Down
2 changes: 1 addition & 1 deletion server/config/environment/production.js
Expand Up @@ -18,7 +18,7 @@ module.exports = {
"",

// Location of image uploads
imageUploadPath: '/opt/uploads/images/',
imageUploadPath: '/home/deploy/uploads/images/',

// MongoDB connection options
mongo: {
Expand Down

0 comments on commit 24b8646

Please sign in to comment.