Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heroku Deployment Steps #490

Closed
Bacon-Fixation opened this issue Apr 7, 2021 · 2 comments
Closed

Heroku Deployment Steps #490

Bacon-Fixation opened this issue Apr 7, 2021 · 2 comments

Comments

@Bacon-Fixation
Copy link
Collaborator

Bacon-Fixation commented Apr 7, 2021

Heroku has a 24hour redeployment which means the saved database is removed and All Twitch Timers will be stopped

First on github create a private Fork of Master-Bot and add a completed config.json file to your fork
Create a File called Procfile and add worker: node index.js and add it to your fork (Master-Bot/ with the config.json file)

Go to Heroku.com and Create a New App
image

Name your app and click on Create App
image

Go to Deployment Method and click connect to Github, log in and find the repo you created click on connect
image

scroll down to Manual Deploy section and click deploy branch
image

this will start the Install for the Dependencies (wait for it to complete...)
once the install is complete, go to the Resources Tab and click the pencils
image

Disable Web then Enable Worker click confirm on both
image

now lets see if it is running, in the top right click on more > view log
image

if it is working, it should look like this
image

Much Love
-Bacon

@galnir
Copy link
Owner

galnir commented Apr 9, 2021

Are they doing the redeployment thing only to free users?

@Bacon-Fixation
Copy link
Collaborator Author

Bacon-Fixation commented Apr 9, 2021

for Heroku a dyno can run for a max of 24 hours at a time then its restarted and anything that wasn't in the github repo(in this example) at the time of initial Heroku deployment are deleted no matter the type of account

you can only run Master-bot using 1 dyno as far as i know

@galnir galnir closed this as completed Apr 10, 2021
@galnir galnir pinned this issue Apr 10, 2021
Repository owner deleted a comment from RxNationGaming Apr 13, 2021
Repository owner locked and limited conversation to collaborators Apr 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants