mirror of https://github.com/status-im/codimd.git
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",
|
||||
"value": "false"
|
||||
},
|
||||
"DB_TYPE": {
|
||||
"description": "Specify database type. See sequelize available databases. Default using postgres",
|
||||
"value": "postgres"
|
||||
},
|
||||
"HMD_SESSION_SECRET": {
|
||||
"description": "Secret used to secure session cookies.",
|
||||
"required": false
|
||||
|
|
|
@ -11,8 +11,7 @@ module.exports = {
|
|||
'config': path.resolve('config.json'),
|
||||
'migrations-path': path.resolve('lib', 'migrations'),
|
||||
'models-path': path.resolve('lib', 'models'),
|
||||
'url': process.env.DATABASE_URL,
|
||||
'dialect': process.env.DB_TYPE
|
||||
'url': process.env.DATABASE_URL
|
||||
}
|
||||
|
||||
EOF
|
||||
|
@ -26,6 +25,4 @@ EOF
|
|||
|
||||
EOF
|
||||
|
||||
# build app
|
||||
npm run build
|
||||
fi
|
||||
|
|
|
@ -26,7 +26,8 @@
|
|||
"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",
|
||||
"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": {
|
||||
"@hackmd/codemirror": "~5.46.2",
|
||||
|
@ -193,7 +194,7 @@
|
|||
"utf-8-validate": "~5.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.0.0"
|
||||
"node": ">=8.0.0 <12.0.0"
|
||||
},
|
||||
"maintainers": [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue