Last active
November 1, 2020 14:31
-
-
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]`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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