NinjaBrigador
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
I tried: flyctl secrets set WASP_WEB_CLIENT_URL=http://gpt-jobify.com/ -a gpt-jobify-client
but the website didn't seem to be effected
49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
I finally got it to deploy! It got deployed to https://gpt-jobify-client.fly.dev/, but I want it on https://gpt-jobify.com because I bought the domain and whatnot from GoDaddy.com. Also how can I change the code without redeploying it?
49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
Ok I got google authenticator working locally!
49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
That's very helpful. I'm using code from https://github.com/wasp-lang/SaaS-Template-GPT as a baseline, and I intend to change it up once I get the base code deployed.
49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
When I run it locally I get the following error: Error 400: redirect_uri_mismatch
49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
I have GOOGLE_CLIENT_ID in my .env.server already so do I need to add it somewhere else?
49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
I seem to be making progress. It looks like I need to update my env variables
file:///app/server/dist/auth/providers/oauth/init.js:36
throw new Error(
Error: The Google auth provider requires clientID provided via env variables.
at ensureValidConfig (file:///app/server/dist/auth/providers/oauth/init.js:36:15)
at init (file:///app/server/dist/auth/providers/oauth/init.js:18:9)
at async file:///app/server/dist/auth/providers/index.js:12:11
Node.js v18.16.1
INFO Main child exited normally with code: 1
INFO Starting clean up.
WARN hallpass exited, pid: 238, status: signal: 15 (SIGTERM)
2023/07/15 06:35:04 listening on [fdaa:2:65e:a7b:d826:a167:de0e:2]:22 (DNS: [fdaa::3]:53) [ 6.290347] reboot: Restarting system
Error: smoke checks for 3d8d115f220589 failed: the app appears to be crashing
throw new Error(
The ${provider.displayName} auth provider requires clientID provided via env variables.
); ^Error: The Google auth provider requires clientID provided via env variables.
at ensureValidConfig (file:///app/server/dist/auth/providers/oauth/init.js:36:15)
at init (file:///app/server/dist/auth/providers/oauth/init.js:18:9)
at async file:///app/server/dist/auth/providers/index.js:12:11
Node.js v18.16.1
INFO Main child exited normally with code: 1
INFO Starting clean up.
WARN hallpass exited, pid: 238, status: signal: 15 (SIGTERM)
2023/07/15 06:35:04 listening on [fdaa:2:65e:a7b:d826:a167:de0e:2]:22 (DNS: [fdaa::3]:53) [ 6.290347] reboot: Restarting system
Error: smoke checks for 3d8d115f220589 failed: the app appears to be crashing
49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
Thanks I was confused from the ext-src part of the path in the error.
Line 70: {formErrors.instructions && formErrors.instructions.message}
Line 93: <span className='text-sm text-red-500'>{formErrors.command && formErrors.command.message}</span>
49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
I don't know how the code is structured, but I assume there is some sort of default for the organization. Yeah it would probably help to ask for it if it isn't specified somewhere else.
In reference to the error, where could I find where this is happening because I looked and haven't found it so far.
49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
The organization seemed to be the issue.
Does this mean that I don't have to manually add DATABASE_URL?
DATABASE_URL=postgres://gpt_jobify_server_server:[email protected]:5432/gpt_jobify_server_server?sslmode=disable
src/ext-src/GptPage.tsx(70,19): error TS2322: Type 'string | FieldError | Merge<FieldError, FieldErrorsImpl<any>>' is not assignable to type 'ReactNode'.
Type 'FieldError' is not assignable to type 'ReactNode'.
Type 'FieldError' is missing the following properties from type 'ReactPortal': key, children, props
src/ext-src/GptPage.tsx(93,56): error TS2322: Type 'string | FieldError | Merge<FieldError, FieldErrorsImpl<any>>' is not assignable to type 'ReactNode'.
π There was an error running "wasp deploy fly deploy". Please review the error and try again (if appropriate).
49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
[Db!] Error: P1012 [Db!] [Db!] error: Environment variable not found: DATABASE_[Db!] --> schema.prisma:4 [Db!] | [Db!] 3 | provider = "postgresql" [Db!] 4 | url = env("DATABASE_URL") [Db!] | [Db!] [Db!]
49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
It still resulted in the same error unfortunately.
49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
I realized that I didn't do: flyctl launch --no-deploy --name gpt-jobify-server --region den.
I was only running: wasp deploy fly launch --name gpt-jobify-server gpt-jobify --region den.
49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
@martinsos Thanks for the help, but I got the same error after downloading flyctl to 0.1.40. I must be doing something else wrong.
49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
2. This is done in a Linux VM
3. This is my first time doing this. I did get the local version to work just fine of the saas template.
49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
[Server!] βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[Server!] β Update available 4.12.0 -> 4.16.2 β
[Server!] β Run the following to update β
[Server!] β npm i --save-dev prisma@latest β
[Server!] β npm i @prisma/client@latest β
[Server!] βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[Client] Prisma schema loaded from ../db/schema.prisma
[Client]
[Client] β Generated Prisma Client (4.12.0 | library) to ./../web-app/node_modules/.prisma/client in 67ms
[Client] You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client
[Client]
[Client]
β
--- Database successfully set up. ---
β
--- Your wasp project has successfully compiled. ---
β
--- Your wasp project has been successfully built! Check it out in the .wasp/build directory. ---
π Setting up server app with name gpt-jobify-server
$ cd /home/dill/gpt-jobify/.wasp/build
$ flyctl launch --no-deploy --name gpt-jobify-server --region den
Creating app in /home/dill/gpt-jobify/.wasp/build
Scanning source code
Detected a Dockerfile app
Error: prompt: non interactive
π There was an error running "wasp deploy fly setup <basename> <region>". Please review the error and try again (if appropriate).
β --- [Error] Deploy command failed: ---
Deploy command failed with exit code: 1
49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
...Still installing npm dependencies!
[Server] > [email protected] postinstall
[Server] > patch-package
[Server]
[Server] patch-package 6.5.1
[Server] Applying patches...
[Server] [email protected] β
[Server]
[Server] added 479 packages, and audited 480 packages in 10s
[Server]
[Server] 114 packages are looking for funding
[Server] run
npm fund
for details
[Server]
[Server] 4 moderate severity vulnerabilities
[Server]
[Server] To address all issues (including breaking changes), run:
[Server] npm audit fix --force
[Server]
[Server] Run npm audit
for details.
[Client] added 469 packages, and audited 470 packages in 11s
[Client]
[Client] 107 packages are looking for funding
[Client] run npm fund
for details
[Client]
[Client] found 0 vulnerabilities
[Db!] Error: P1012
[Db!]
[Db!] error: Environment variable not found: DATABASE_URL.
[Db!] --> schema.prisma:4
[Db!] |
[Db!] 3 | provider = "postgresql"
[Db!] 4 | url = env("DATABASE_URL")
[Db!]
[Db!]
β
--- Successfully completed npm install. ---
π --- Setting up database... ---
[Server] Prisma schema loaded from ../db/schema.prisma
[Server]
[Server] added 2 packages, and audited 3 packages in 1s
[Server]
[Server] found 0 vulnerabilities
[Server]
[Server] added 2 packages, and audited 5 packages in 976ms
[Server]
[Server] found 0 vulnerabilities
[Server]
[Server] β Installed the @prisma/client and prisma packages in your project
[Server]
[Server] β Generated Prisma Client (4.12.0 | library) to ./node_modules/.prisma/client in 71ms
[Server] You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client
[Server]
[Server] 49 replies
WWasp-lang
β’Created by NinjaBrigador on 7/11/2023 in #πquestions
Non-interactive automated deployment option
1. The command and output: (I wasn't sure if there was a better way to do this)
dill@MSI:~/gpt-jobify$ wasp deploy fly launch gpt-jobify den
$ flyctl version
flyctl v0.1.52 linux/amd64
Commit: 9928dce858ee7d597f7af9068fca6e72893f3c56
BuildDate: 2023-07-07T23:18:26Z
$ flyctl auth whoami
[email protected]
π Launching your Wasp app to Fly.io!
π Setting up your Wasp app with Fly.io!
π Building your Wasp app...
$ cd /home/dill/gpt-jobify/
$ /home/dill/.local/share/wasp-lang/0.11.0/wasp-bin build
π --- Clearing the content of the .wasp/build directory... ---
β
--- Successfully cleared the contents of the .wasp/build directory. ---
π --- Building wasp project... ---
π --- Starting npm install... ---
49 replies