Having problems with deploying to vercel and also manually deploying to my server hosting provider!

Hello guys today I tried to deploy my saas. I tried it on my hosted server but wasnt able to get i run. I really tried to understand the docs but still wasnt able.(would be nice if somebody could help me out) Next I tried vercel but there I also failed. Idk but i find it really hard to deploy a wasp project. So please guys help out and have a nice one!
2 Replies
kapa.ai2mo ago
Hi @Keypro77. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry to hear that you're having trouble deploying your Wasp project. Let's try to break down the process and see if we can identify where the issue might be. Firstly, deploying a Wasp app involves several steps: 1. Generating deployable code: You can do this by running the command wasp build in your terminal. This generates deployable code for the whole app in the .wasp/build/ directory. Note that you won't be able to build the app if you are using SQLite as a database. You'll have to switch to PostgreSQL before deploying to production. source (https://wasp-lang.dev/docs/advanced/deployment/manually#deploying-a-wasp-app) 2. Deploying the API server (backend): There's a Dockerfile that defines an image for building the server in the .wasp/build directory. To run the server in production, deploy this Docker image to a hosting provider and ensure the required environment variables on the provider are correctly set up. source (https://wasp-lang.dev/docs/advanced/deployment/manually#deploying-a-wasp-app) 3. Deploying the web client (frontend): To build the web app, position yourself in .wasp/build/web-app directory and run npm install && REACT_APP_API_URL=<url_to_wasp_backend> npm run build. The <url_to_wasp_backend> is the URL of the Wasp server that you previously deployed. source (https://wasp-lang.dev/docs/advanced/deployment/manually#3-deploying-the-web-client-frontend) 4. Deploying a PostgreSQL database: Any PostgreSQL database will do, as long as you provide the server with the correct DATABASE_URL env var and ensure that the database is accessible from the server. source (https://wasp-lang.dev/docs/advanced/deployment/manually#4-deploying-the-database) If you're having trouble with any of these steps, it would be helpful to know more specifics about the issues you're encountering. As for deploying to Vercel, unfortunately, the Wasp documentation does not provide a step-by-step guide for Vercel specifically. However, you can deploy the built Wasp app wherever and however you want, as long as your provider/server supports Wasp's build format. source (https://wasp-lang.dev/docs/advanced/deployment/manually) If you're still having trouble, I would recommend reaching out to the Wasp community on their Discord server (https://discord.com/invite/rzdnErX) for more specific help. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Keypro77, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
martinsos2mo ago
Hey @Keypro77 , sorry to hear that! So, https://wasp-lang.dev/docs/advanced/deployment/overview is the part of docs that you will want to check out regarding deployment, all should be there. You said you already did but got stuck -> could you share any more details? Which steps did you find unclear, what didn't work, what have you tried?
Overview | Wasp
Wasp apps are full-stack apps that consist of: