I wrote telegram-bot on Haskell using the telegram-api library ( https://github.com/klappvisor/haskell-telegram-api ). It works fine, but I want to upload it to the server so that I do not run it many times. Thanks in advance for your reply)
In principal it is possible.
You need a Procfile
and an app.json
.
Procfile
specifies a CLI command which Heroku is going to execute. In app.json
you define used environment variables as well as the buildpack you require.
https://devcenter.heroku.com/articles/procfile
https://devcenter.heroku.com/articles/app-json-schema
You will need the Haskell buildpack. There are many and you will have to pick one. Eg:
There is no official Haskell buildpack made by Heroku.
It might be worth pursuing the idea of dockerizing your project. Heroku can also deploy Docker containers.
With the lack of information you provided all you can do is read through the articles I linked and attempt deploying it. You have not provided any specific errors or problems.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.