fix heroku one click deployment (#1255)

fix heroku one click deployment
This commit is contained in:
Yukai Huang 2019-08-14 23:47:08 +08:00 committed by GitHub
commit 87587bd241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1044 additions and 1025 deletions

View File

@ -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

View File

@ -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

View File

@ -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": [
{

2055
yarn.lock

File diff suppressed because it is too large Load Diff