From 150586081176a75d0a53594a152f31c210ace27a Mon Sep 17 00:00:00 2001 From: Christopher Van Date: Mon, 10 Mar 2014 20:53:56 -0700 Subject: [PATCH] deploy on stackato (fixes #136) --- .gitignore | 1 + README.md | 23 +++++++++++++++++++++++ stackato.yml | 17 +++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 stackato.yml diff --git a/.gitignore b/.gitignore index 00024cc..36f1874 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ settings_local.js scripts/prefillParameters.json data/ dump.rdb +static/uploads diff --git a/README.md b/README.md index a7ae9b5..7bfbf9a 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,29 @@ nodemon app.js ``` +## Deployment + +We use stackato: + + stackato push --no-prompt + +To start the instance on stackato: + + stackato start + +To read the logs on stackato: + + stackato logs + +To run shell commands on stackato: + + stackato run cat ../logs/stdout.log + +To access the shell on stackato: + + stackato ssh + + ## Sample Usage ### Game Submission diff --git a/stackato.yml b/stackato.yml new file mode 100644 index 0000000..82158ef --- /dev/null +++ b/stackato.yml @@ -0,0 +1,17 @@ +name: galaxy-api + +instances: 1 + +framework: + type: node + runtime: node010 + +mem: 128 + +processes: + web: PROD=1 npm start + +services: + ${name}-redis: redis + +ignores: [".git", "data", "dump.rdb", "node_modules/*", "static/uploads/*"]