зеркало из https://github.com/mozilla/galaxy-api.git
deploy on stackato (fixes #136)
This commit is contained in:
Родитель
a5d3b3348e
Коммит
1505860811
|
@ -19,3 +19,4 @@ settings_local.js
|
|||
scripts/prefillParameters.json
|
||||
data/
|
||||
dump.rdb
|
||||
static/uploads
|
||||
|
|
23
README.md
23
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
|
||||
|
|
|
@ -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/*"]
|
Загрузка…
Ссылка в новой задаче