Skip to content

Commit 13dfac9

Browse files
author
anandkumarpatel
committed
Merge pull request #172 from CodeNow/astral-refactor
Astral refactor
2 parents 58510d0 + da8870e commit 13dfac9

5 files changed

Lines changed: 10 additions & 7 deletions

File tree

ansible/beta-hosts/variables

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ datadog_tags=env:beta
5555
domain=runnable-beta.com
5656
new_relic_license_key=338516e0826451c297d44dc60aeaf0a0ca4bfead
5757
node_env=production-beta
58-
pg_database=shiva
58+
pg_database=astral
5959
pg_host=beta-infrastructure-db.cnksgdqarobf.us-west-2.rds.amazonaws.com
6060
pg_pass=QBjSpAXVYwmGHu4Y
6161
pg_user=shiva

ansible/group_vars/alpha-shiva.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
name: "shiva"
2-
32
container_image: "registry.runnable.com/runnable/{{ name }}"
43
container_tag: "{{ git_branch }}"
5-
repo: "git@github.com:CodeNow/{{ name }}.git"
6-
node_version: "0.10.38"
7-
npm_version: "2.1.18"
4+
repo: "git@github.com:CodeNow/astral.git"
5+
node_version: "4.2.1"
6+
npm_version: "2.8.3"
7+
8+
# Overrides the start command in the builder role
9+
npm_start_command: "run shiva-start"
810

911
# Not actually needed, just allows container-kill-start to work
1012
hosted_ports: ["3000"]

ansible/prod-hosts/variables

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ datadog_tags=env:alpha
5555
domain=runnable.io
5656
new_relic_license_key=338516e0826451c297d44dc60aeaf0a0ca4bfead
5757
node_env=production
58-
pg_database=shiva
58+
pg_database=astral
5959
pg_host=alpha-production-db.czw5moz6rmpp.us-west-1.rds.amazonaws.com:30573
6060
pg_pass=wCJGCfCWE9CKmQwa2XUKj6d8WYcEZAb9
6161
pg_user=shiva
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
---
22
build_dir: /opts/builds/docker_build/
3+
npm_start_command: start

ansible/roles/builder/templates/basic_node/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ RUN {{ command }}
3434
{% endif %}
3535

3636
# Define default command.
37-
CMD ulimit -c unlimited && /usr/local/bin/npm start > /var/log/{{ name }}.log 2>&1
37+
CMD ulimit -c unlimited && /usr/local/bin/npm {{ npm_start_command }} > /var/log/{{ name }}.log 2>&1

0 commit comments

Comments
 (0)