I'm trying to deploy my anvil (web)app on Heroku...I don't know if it is possible or not.
so if it is possible then how do I configure my Procfile? How it should look like? and what more do I need?
after posting this question I've tried myself
Procfile
web: python hss.py
worker: python hss.py
after starting the deployment I got this error
File "/app/hssssss/hss.py", line 20, in <module>
import anvil.server
class LiveObjectProxy(anvil.LiveObject):
AttributeError: module 'anvil' has no attribute 'LiveObject'
I don't know if there is a buildpack for anvil with heroku, but if there isn't then you can deploy on heroku with docker. You just have to provide a Dockerfile
and a file called heroku.yml
, then heroku will build the docker container for you.
Here are some links to help you with this:
https://devcenter.heroku.com/articles/build-docker-images-heroku-yml
I have the same problem after deployment on Heroku. Have you solved the problem?
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.