mirror of
https://github.com/status-im/codimd.git
synced 2025-01-12 10:24:13 +00:00
fix heroku one click deployment (#1255)
fix heroku one click deployment
This commit is contained in:
commit
87587bd241
4
app.json
4
app.json
@ -19,10 +19,6 @@
|
|||||||
"description": "Let npm also install development build tool",
|
"description": "Let npm also install development build tool",
|
||||||
"value": "false"
|
"value": "false"
|
||||||
},
|
},
|
||||||
"DB_TYPE": {
|
|
||||||
"description": "Specify database type. See sequelize available databases. Default using postgres",
|
|
||||||
"value": "postgres"
|
|
||||||
},
|
|
||||||
"HMD_SESSION_SECRET": {
|
"HMD_SESSION_SECRET": {
|
||||||
"description": "Secret used to secure session cookies.",
|
"description": "Secret used to secure session cookies.",
|
||||||
"required": false
|
"required": false
|
||||||
|
@ -11,8 +11,7 @@ module.exports = {
|
|||||||
'config': path.resolve('config.json'),
|
'config': path.resolve('config.json'),
|
||||||
'migrations-path': path.resolve('lib', 'migrations'),
|
'migrations-path': path.resolve('lib', 'migrations'),
|
||||||
'models-path': path.resolve('lib', 'models'),
|
'models-path': path.resolve('lib', 'models'),
|
||||||
'url': process.env.DATABASE_URL,
|
'url': process.env.DATABASE_URL
|
||||||
'dialect': process.env.DB_TYPE
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
@ -26,6 +25,4 @@ EOF
|
|||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# build app
|
|
||||||
npm run build
|
|
||||||
fi
|
fi
|
||||||
|
@ -26,7 +26,8 @@
|
|||||||
"coverage": "nyc mocha --require intelli-espower-loader --exit --recursive ./test",
|
"coverage": "nyc mocha --require intelli-espower-loader --exit --recursive ./test",
|
||||||
"coverage:ci": "nyc mocha --no-color -R dot --require intelli-espower-loader --exit --recursive ./test",
|
"coverage:ci": "nyc mocha --no-color -R dot --require intelli-espower-loader --exit --recursive ./test",
|
||||||
"test": "npm run-script lint && npm run-script jsonlint && npm run-script coverage",
|
"test": "npm run-script lint && npm run-script jsonlint && npm run-script coverage",
|
||||||
"test:ci": "npm run-script lint && npm run-script jsonlint && npm run-script coverage:ci"
|
"test:ci": "npm run-script lint && npm run-script jsonlint && npm run-script coverage:ci",
|
||||||
|
"postinstall": "bin/heroku"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hackmd/codemirror": "~5.46.2",
|
"@hackmd/codemirror": "~5.46.2",
|
||||||
@ -193,7 +194,7 @@
|
|||||||
"utf-8-validate": "~5.0.1"
|
"utf-8-validate": "~5.0.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=8.0.0"
|
"node": ">=8.0.0 <12.0.0"
|
||||||
},
|
},
|
||||||
"maintainers": [
|
"maintainers": [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user