the-guard-bot icon indicating copy to clipboard operation
the-guard-bot copied to clipboard

It does not work on heroku

Open fasilminale opened this issue 5 years ago • 6 comments

fasilminale avatar Sep 20 '18 16:09 fasilminale

Yes, it's known. We are working on fixing that.

SitiSchu avatar Sep 20 '18 17:09 SitiSchu

okay

fasilminale avatar Sep 20 '18 17:09 fasilminale

@fasilminale Well heroku requires your app to listen on a port so you can make it work by adding this to the line in your index.js:

require("http").createServer((req, res)=>res.end("3")).listen(process.env.PORT);

At least that what I did.

redcodemohammed avatar Sep 01 '19 10:09 redcodemohammed

@redcodemohammed The real issue is Heroku doesn't persist filesystem changes. The Guard has a file based database, which will be reset on restart.

MKRhere avatar Sep 01 '19 10:09 MKRhere

Yep, you need to use some add-ons for persistent storage

faizanakram99 avatar Sep 02 '19 20:09 faizanakram99

@MKRhere Yeah, I had the same problem.

redcodemohammed avatar Sep 04 '19 09:09 redcodemohammed