FoxxMD / context-mod

an event-based, reddit moderation bot built on top of snoowrap and written in typescript
https://contextmod.dev
MIT License
49 stars 11 forks source link

Stuck while trying to deploy to heroku #29

Closed OmgImAlexis closed 2 years ago

OmgImAlexis commented 2 years ago

Used the heroku link and then provided it the needed envs.

The site shows a heroku error and when trying to connect via heroku run bash it never connects. It's just forever showing Running bash on ⬢ context-mod... / connecting, run.4890 (Hobby).

Any ideas if this is a heroku issue or something with the deploy?

FoxxMD commented 2 years ago

To be honest I'm not sure. A lot has changed with CM since I last tested it with Heroku (4 months ago) and I also don't use Heroku for anything normally...I use straight docker deployments for my instance as does all the other mod teams that use CM. I imagine it must work to some extent since this repo gets traffic from elements.heroku.com daily 🤷

I have an open issue for deployments and wish I could get some help from someone more knowledgable with heroku/aws/digital ocean to handle what needs to be done to get context-mod on these platforms and document it.

It would probably be better to get context-mod in the Heroku image registry rather than a quick deploy template so they could update their container when a new image is pushed...but I'm not familiar enough with heroku, and spend most of the free time I do have on the actual CM code, to figure that out :)

OmgImAlexis commented 2 years ago

For now I might go through the full docker setup then on another machine. I was mainly using heroku for the easy one click deploy to test this out.

If I have some time I’ll see if I can get the heroku one working and possibly get a digital ocean template added.

FoxxMD commented 2 years ago

In v10.0.2 I've made changes to the heroku deployment template so this actually works now as well as updated documentation to make usage clearer and point out some caveats.