Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 1.24 KB

RENDER.md

File metadata and controls

36 lines (21 loc) · 1.24 KB

Deploying to Render

Resources

Render Setup

Login to render and visit the dashboard.

Create a New Web Service. Choose repo via URL.

Specify start command:

gunicorn "web_app:create_app()"

Set environment variables:

GOOGLE_CLIENT_ID="______.apps.googleusercontent.com"
GOOGLE_CLIENT_SECRET="______"
GOOGLE_CREDENTIALS_FILEPATH="/etc/secrets/google-credentials.json"
SECRET_KEY="YOUR SECRET HERE"

Set a secret configuration file called "google-credentials.json", and paste the contents from your google service account credentials file. The render web service will then have access to the file as "/etc/secrets/google-credentials.json".

Google Cloud Setup

Under credentials for your web client, configure a redirect url pointing to the render server: "https://YOUR_RENDER_APP.onrender.com/auth/google/callback" and save.

While the web client is in test mode, only tests users can use in production, in which case you may need to add your email address as a "Test User" in the OAuth consent screen. Otherwise publish the app.