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/*"]