Recommit everything because of credentials
This commit is contained in:
commit
11fb50a2f1
11 changed files with 267 additions and 0 deletions
15
deploy.sh
Executable file
15
deploy.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
git remote | grep heroku
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Creating Heroku application..."
|
||||
heroku apps:create
|
||||
fi
|
||||
|
||||
if [ -n "$DATABASE_URL" ]; then
|
||||
echo "Setting DATABASE_URL..."
|
||||
heroku config:set DATABASE_URL="$DATABASE_URL"
|
||||
fi
|
||||
|
||||
echo "Deploying..."
|
||||
git push heroku master
|
||||
Loading…
Add table
Add a link
Reference in a new issue