Skip to content

Simplify testing the Open Saas template in build mode #524

@sodic

Description

@sodic

When releasing Wasp 0.18.0, I was tasked with testing Open Saas template in build mode.

I had to go through a series of steps to get it working:

  1. I had to change the email from Dummy to something else, didn't know what at first.

  2. I pulled the env for opensaas-sh, there are SendGrid credentials in there but I couldn’t get SendGrid to work.

    Image Funnily enough, the UI said everything was OK:
Image
  1. It was hard to figure out which provider we should set to use this credentials (SendGrid or SMTP). After setting the credentials, I couldn't (or didn't know how to) access SendGrid's dashboard to see what wasn't working.

  2. I tried to use SMTP credentials from waspc/todoApp. At first, they didn’t work for Open Saas despite working in todoApp, I had to remove the single quotes:

    # Had to change this
    SMTP_HOST='smtp.mailgun.org'
    SMTP_USERNAME='[email protected]'
    SMTP_PASSWORD='<redacted>'
    SMTP_PORT=587
    
    # Into this
    SMTP_HOST=smtp.mailgun.org
    [email protected]
    SMTP_PASSWORD='<redacted>'
    SMTP_PORT=587
    
  3. Login/registration still didn’t work after this, I had to change the email address from [email protected] to [email protected] in two places inside main.wasp. It worked after that.

  4. It’s hard to figure out which environment variables we should set (no dedicated .env. file we can pull)

Metadata

Metadata

Assignees

Labels

faster wasp devImprovements that make developing Wasp itself faster and easier.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions