I often use the npm module json-server
to generate a fake JSON api given a db.json
file. Is there any way to deploy that to Heroku? Essentially, I just run
json-server --watch db.json
And it runs a server that also servers static html if there are any in the public/
directory. Essentially, I think it is just running a Node server, except I tried pushing to Heroku, but it did not work. Is there a special procedure I should do in order to make Heroku run that json-server
module as my server?