fix: heroku Proffile might show sensitive data in log

Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
BoHong Li 2020-03-02 23:51:40 +08:00
parent a2b9fa9a65
commit 1c5eaae51d
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38
2 changed files with 6 additions and 1 deletions

View File

@ -1 +1 @@
web: CMD_DB_URL="$DATABASE_URL" CMD_PORT="$PORT" npm run start
web: ./bin/heroku_start.sh

5
bin/heroku_start.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
set -euo pipefail
CMD_DB_URL="$DATABASE_URL" CMD_PORT="$PORT" npm run start