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

Example deploy and set secrets for fly #348

Closed
mbordash opened this issue Dec 23, 2024 · 1 comment
Closed

Example deploy and set secrets for fly #348

mbordash opened this issue Dec 23, 2024 · 1 comment

Comments

@mbordash
Copy link

Hi,

I've had an exceptional experience developing on the opensaas template. All is working well in dev, however, when it comes time to deploy to Fly using a custom domain, I'm having many difficulties getting my Google Auth to function. I've setup the google auth callbacks, certificates, but I think I'm not setting the build env variables properly and when to call set secrets, especially when it comes to WASP_WEB_CLIENT_URL, WASP_SERVER_URL, REACT_APP_API_URL. Could you share working examples of how to deploy opensaas/wasp on fly so that I can compare with my own?

Thanks in advance,

Michael

@mbordash
Copy link
Author

mbordash commented Dec 23, 2024

After deployment on fly, I can see in js console that it is trying to access "https://.fly.dev/auth/me" and getting 401 Unauthorized.

This is my build command:

DATABASE_URL='postgres://xxx'
WASP_WEB_CLIENT_URL=https://www.my-domain
WASP_SERVER_URL=https://www.my-domain
JWT_SECRET=xxx
PORT=3000
STRIPE_API_KEY=xxx
STRIPE_WEBHOOK_SECRET=xxx
STRIPE_CUSTOMER_PORTAL_URL=xxx
PAYMENTS_MONTHLY_SUBSCRIPTION_PLAN_ID=xxx
PAYMENTS_ANNUAL_SUBSCRIPTION_PLAN_ID=xxx
ADMIN_EMAILS=xxx
GOOGLE_CLIENT_ID=xxx
GOOGLE_CLIENT_SECRET=xxx
MAILGUN_API_KEY=xxx
MAILGUN_DOMAIN=xxx
wasp deploy fly deploy mia

Should I set REACT_APP_API_URL as well to "https://www.my-domain"?

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

No branches or pull requests

1 participant