Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation about deployment #93

Closed
sansyrox opened this issue Oct 13, 2021 · 5 comments · Fixed by #316
Closed

Add documentation about deployment #93

sansyrox opened this issue Oct 13, 2021 · 5 comments · Fixed by #316

Comments

@sansyrox
Copy link
Member

We need to add docs about deployment

@carlosm27
Copy link
Contributor

Hi, I just try Robyn and deploy the example on Railway.

Example:

from robyn import Robyn
import os

app = Robyn(__file__)

@app.get("/")
async def h(request):
    return "Hello, world!"


if __name__ == '__main__':
    app.start(url="0.0.0.0", port=os.getenv("PORT", default=5000))

May I write about deployment? Do you have something in mind about the example we should show in the docs?

@sansyrox
Copy link
Member Author

@carlosm27 , I just wanted to mention the various platforms where we can deploy Robyn. Railway will be a good start.

May I write about deployment?

Absolutely, lmk if you need any help from my end 😄

@sansyrox
Copy link
Member Author

@carlosm27 , were you able to deploy Robyn successfully?

@carlosm27
Copy link
Contributor

Yes, on Railway. I will try to deploy it on Deta too. Should I include the process in the documentation or only mention the platform? Because in Railway to deploy you have to pass url=0.0.0.0 as an argument to app.start() and set the PORT as an environment variable.

@sansyrox
Copy link
Member Author

That's great news! Thank you @carlosm27

Should I include the process in the documentation

Please mention the process too. It will allow the new developer to have a better developer experience 😄

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

Successfully merging a pull request may close this issue.

2 participants