Created
March 14, 2021 09:47
-
-
Save phuwn/593520fdb5a993d85ba2702f25ac3007 to your computer and use it in GitHub Desktop.
Heroku a-commit-a-day setup script
This file contains 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
# Go to your terminal, clone this repo | |
git clone https://github.com/phuwn/a-commit-a-day.git | |
cd a-commit-a-day | |
# Connect to Heroku and setup your app | |
heroku login | |
heroku git:remote -a a-commit-a-day | |
# Set buildpack for our app, since my script are shell script, so... | |
heroku buildpacks:set https://github.com/niteoweb/heroku-buildpack-shell.git | |
# Provide your GitHub details | |
# Your commit repo url | |
heroku config:set GITHUB_CLONE_URL=https://{YOUR_GITHUB_ACCESS_TOKEN}@{YOUR_GITHUB_REPO} | |
heroku config:set GITHUB_USER_EMAIL={YOUR_GITHUB_EMAIL} | |
heroku config:set GITHUB_USER_NAME={YOUR_GITHUB_NAME} | |
# Push my script to your app | |
git push heroku main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment