Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Make this example deployable on the web with Heroku #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Corvince
Copy link

I recently discovered that it is really easy to host mesa models on the web with Heroku. This PR includes the needed changes to make this model deployable on Heroku. See the changes to the read me to read the details, but in short if a model is inside a git repository you only need to have a single new file name Procfile with the following single line content

web: python run.py -p=$PORT

The only other change is to specify the right port on the ModularServer, but this PR on mesa will change the default port to use the right port.

You can view this example at https://mesa-schelling-example.herokuapp.com/#

@jackiekazil
Copy link
Member

This looks really cool! I will take a look!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants