Skip to content

Instantly share code, notes, and snippets.

@subtubes-io
Last active November 1, 2020 14:31
Show Gist options
  • Save subtubes-io/11389366 to your computer and use it in GitHub Desktop.
Save subtubes-io/11389366 to your computer and use it in GitHub Desktop.
Bash Script to deploy app to create and deploy app to Heroku use `./filename [appName]`
#!/bin/sh
echo "Creating $1"
express --css stylus $1
cd $1
touch README.md
npm install
touch run_locally.sh
chmod 777 run_locally.sh
echo "web: node app.js" > Procfile
echo "node_modules" .gitignore
git init
git add .
git commit -a -m "First commit"
heroku create $1
git push heroku master
heroku ps:scale web=1
heroku open
echo "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment