fred-123
fred-123
WWasp
Created by fred-123 on 3/24/2025 in #🙋questions
Do client secrets have to be included in every redeploy or only for the first one?
@kapa.ai is there something like a change log to see what has changed between the versions? Or would I have to hunt it down in the github repo?
27 replies
WWasp
Created by fred-123 on 3/24/2025 in #🙋questions
Do client secrets have to be included in every redeploy or only for the first one?
@kapa.ai for upgrading opensaas specificly. I am on wasp 0.16 already
27 replies
WWasp
Created by fred-123 on 3/24/2025 in #🙋questions
Do client secrets have to be included in every redeploy or only for the first one?
I am on an older version. Is there any documentation on how to upgrade? @kapa.ai
27 replies
WWasp
Created by fred-123 on 3/24/2025 in #🙋questions
Is it possible to create custom user roles with the current wasp auth? Such as non-admin staff
Makes sense. Just thought there might be a wasp way of doing it since its somewhat related to auth.
8 replies
WWasp
Created by fred-123 on 3/24/2025 in #🙋questions
Do client secrets have to be included in every redeploy or only for the first one?
@kapa.ai is there a way to make the deployment fail when forgetting to add it? I am worried I redeploy without it and thus hide the stripe billing section from the user which I am sure they might not be too happy about since that section is requried to cancel or upgrade subscriptions.
27 replies
WWasp
Created by fred-123 on 2/25/2025 in #🙋questions
Can the wasp db studio command be altered to take the connection string directly?
my pleasure!
18 replies
WWasp
Created by fred-123 on 2/25/2025 in #🙋questions
Can the wasp db studio command be altered to take the connection string directly?
18 replies
WWasp
Created by fred-123 on 2/25/2025 in #🙋questions
Can the wasp db studio command be altered to take the connection string directly?
Ok I just realized how stupid i was. I have been working on a nearly 10-year-old laptop connected to a TV for 7 months just because of the Docker issue, when I have a nice workstation with triple monitors. The solution is simple - run the same type of setup as for proxying into production databases, but with the dev database running on another machine. If you have the same problem or want to run the database and client on different machines in development, here's how: Wasp Dev Setup: Split Environment Overview This setup allows you to develop Wasp applications by splitting responsibilities between two machines: - Host Machine: Runs Docker and the database - Client Machine: Used for development and running the application Setup Instructions On Host Machine (with Docker support) 1. Start Docker Desktop 2. Navigate to your Wasp project directory 3. Start the database: wasp db start (Keep this terminal open) On Client Machine (development machine) 1. Create SSH tunnel for database: ssh -L 5432:localhost:5432 [email protected] (Keep this terminal open)
2. In another terminal, run Wasp commands: cd /path/to/wasp/project wasp db migrate-dev wasp start Cross-Machine Access Viewing Client's App on Host 1. On Client: - Enable Remote Login in System Settings > Sharing - Continue running your app with wasp start (port 3000) 2. On Host: - Create a reverse SSH tunnel: ssh -L 3000:localhost:3000 [email protected] - Open browser and navigate to http://localhost:3000 Important Notes - Code and app execution happen on Client machine - Database runs on Host machine (through Docker) - Environment files (.env.server) only need to be in sync for database-related configurations - Each command reads environment files from the machine where it's executed: - wasp db start uses Host machine's .env.server - wasp start uses Client machine's .env.server
18 replies
WWasp
Created by fred-123 on 3/3/2025 in #🙋questions
How lang will wasp stay in beta?
Will send you a direct message.
9 replies
WWasp
Created by fred-123 on 3/3/2025 in #🙋questions
How lang will wasp stay in beta?
Thanks for the thorough response. That gives me a lot of peace of mind. You guys do amazing work!
9 replies
WWasp
Created by fred-123 on 2/25/2025 in #🙋questions
Can the wasp db studio command be altered to take the connection string directly?
You are right. That works. For some reason I though the install was all inside the "wasp new" command. Didn't even cross my mind that I can just curl wasp for some reason. Too much coffee or to little coffee. We will never know. Thanks for the help!
18 replies
WWasp
Created by fred-123 on 2/25/2025 in #🙋questions
Can the wasp db studio command be altered to take the connection string directly?
I think thats the catch. Installing wasp requires docker to work. The Computer where i have this issue can't instal wasp since it can't do Virtualization of any type. But i should be able to use something like PgAdmin4 to connect to the db directly right?
18 replies
WWasp
Created by fred-123 on 2/25/2025 in #🙋questions
Can the wasp db studio command be altered to take the connection string directly?
i still get this when i run it: app/main.wasp @ 34:17-20 Type error: Undefined identifier: User 33 | auth: { 34 | userEntity: User, 35 | methods: { ❌ --- [Error] Compilation of wasp project failed: -------------------------------- 1 errors found Just to clarify. On this machine i have never run wasp start or any command like this as it doesn't work.
18 replies
WWasp
Created by fred-123 on 2/17/2025 in #🙋questions
Migrate found failed migrations in the target database (Error: P3009)
Thats all i needed. Its fixed.
11 replies
WWasp
Created by fred-123 on 2/17/2025 in #🙋questions
Migrate found failed migrations in the target database (Error: P3009)
@kapa.ai these migrations failed: 20250214134902_: This migration failed due to a unique index constraint violation on the User table. Specifically, the subscriptionTier column already has a value "tester" which is being duplicated. The database error code is 23505. 20250215185723_reset_db_locally_15_2_25: This migration failed because a relation (table) named "User" already exists. The database error code is 42P07. This likely means the migration is trying to create the User table again, but it's already there (possibly from a previous migration, even if that previous migration failed later).
11 replies
WWasp
Created by fred-123 on 2/13/2025 in #🙋questions
Does datePaid in the DB get popuplated with the payment date OOTB with opensaas?
Yes thank you!
7 replies
WWasp
Created by Flictum on 7/24/2024 in #🙋questions
Translation
@martinsos is translation of the auth forms possible now?
14 replies
WWasp
Created by fred-123 on 7/1/2024 in #🙋questions
How to create a custom API Endpoint to check subscriptionStatus and subscriptionTier
Does that answer your question?
71 replies
WWasp
Created by fred-123 on 7/1/2024 in #🙋questions
How to create a custom API Endpoint to check subscriptionStatus and subscriptionTier
@kapa.ai How to secure an api endpoint in wasp 0.14 with jwt tokens?
71 replies
WWasp
Created by fred-123 on 7/1/2024 in #🙋questions
How to create a custom API Endpoint to check subscriptionStatus and subscriptionTier
just do it the proper way with JWT tokens and you should be fine
71 replies