-
Add to
.gitignore
:node_modules public
-
Add to your app
dependencies
ofpackage.json
:
#!/bin/bash | |
set -e | |
export APP_NAME=$1 | |
export PGHOST=$(< $HOME/predeploy.d/postgres_host) | |
export PGUSER=admin | |
if [ -f $HOME/$APP_NAME/DATABASE_URL ]; then | |
# Database URL is already set - DB must exist | |
DATABASE_URL=$(cat $HOME/$APP_NAME/DATABASE_URL) |
Add to .gitignore
:
node_modules
public
Add to your app dependencies
of package.json
: