Skip to content

Instantly share code, notes, and snippets.

@rish-16
Last active January 12, 2021 07:54
Show Gist options
  • Select an option

  • Save rish-16/2a9be93bba2301690d509c02ac579019 to your computer and use it in GitHub Desktop.

Select an option

Save rish-16/2a9be93bba2301690d509c02ac579019 to your computer and use it in GitHub Desktop.
Flask API deployment instructions on repl.it

Deploying on repl.it

  1. Visit repl.it
  2. Click on any of the 3 servers, rhapp_facilities, rhapp_events, or rhapp_laundry
  3. Add changes to document
  4. Click the Stop button at the top
  5. Click the Run button at the top – a browser-like window should open with the default endpoint loaded
  6. Test installation by pinging the endpoints with Postman (your repl.it window should show 200 codes in the console)

Important Notes

  1. If you installed new packages, you don't need to worry about installation.
  2. repl.it will install all of them automatically before deploying it.
  3. All servers need to have a valid URL (0.0.0.0) and port number (8080) in app.run(...) at the end:
if __name__ == "__main__":
  app.run('0.0.0.0', port=8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment