Other places to deploy server

What are some other places to deply wasp server, can i deploy on netlify?
9 Replies
kapa.ai
kapa.ai2d ago
Hi @ArDev. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Wasp apps, which consist of a Node.js server, a static client, and a PostgreSQL database, can be deployed anywhere where you can usually deploy Node.js apps or static apps. For example, you can deploy your server on Fly.io (https://fly.io/) [^1^]. However, Netlify is typically suggested for deploying the client part of your Wasp app, not the server [^2^][^3^]. If your desired provider isn't on the list, you can still deploy your app. It just means there isn't a step-by-step guide available yet. You can also contribute by writing a guide yourself [^1^]. For automated deployment, Wasp currently supports Fly.io and has plans to support Railway soon [^4^]. ^1^]: [Deploying Manually (https://wasp-lang.dev/docs/advanced/deployment/manually) ^2^]: [Deployment Overview (https://wasp-lang.dev/docs/advanced/deployment/overview) ^3^]: [Deploy to a Fly.io App (https://wasp-lang.dev/docs/advanced/deployment/manually#deploy-to-a-flyio-app) ^4^]: [Deploying with the Wasp CLI (https://wasp-lang.dev/docs/advanced/deployment/cli) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @ArDev, 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?
ArDev
ArDev2d ago
@kapa.ai can i not deploy on netlify?
kapa.ai
kapa.ai2d ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- Yes, you can deploy on Netlify, but it's typically used for deploying the client (frontend) part of your Wasp app, not the server (backend) [^1^][^2^]. The frontend of a Wasp app is a bunch of static files, which can be deployed to any static hosting provider like Netlify [^3^]. Here are the steps to build the web app for deployment:
cd .wasp/build/web-app
npm install && REACT_APP_API_URL=<url_to_wasp_backend> npm run build
cd .wasp/build/web-app
npm install && REACT_APP_API_URL=<url_to_wasp_backend> npm run build
Replace <url_to_wasp_backend> with the URL of the Wasp server that you previously deployed. This command will build the web client and put it in the build/ directory in the web-app directory [^3^]. ^1^]: [Deployment Overview (https://wasp-lang.dev/docs/advanced/deployment/overview) ^2^]: [Deploy to a Fly.io App (https://wasp-lang.dev/docs/advanced/deployment/manually#deploy-to-a-flyio-app) ^3^]: [Deploying the Web Client (frontend) (https://wasp-lang.dev/docs/advanced/deployment/manually#3-deploying-the-web-client-frontend) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @ArDev, 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?
ArDev
ArDev2d ago
@kapa.ai i mean deploy the server on netlify, and if not tell me every single other providers u can use
kapa.ai
kapa.ai2d ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- Netlify is primarily a static site hosting provider and does not support server-side applications like the server part of a Wasp app, which is a Node.js application. Therefore, you cannot deploy the server part of a Wasp app on Netlify. However, there are several other providers where you can deploy the server part of your Wasp app: 1. Fly.io (https://fly.io/): Fly.io is a hosting provider that supports both the server and database parts of a Wasp app [^1^]. 2. Heroku (https://www.heroku.com/): Heroku is another provider where you can run the server and PostgreSQL database completely for free [^2^]. 3. Railway (https://railway.app/): Railway is a provider that supports the server, client, and database parts of a Wasp app [^1^]. 4. Google Cloud Platform (GCP) (https://cloud.google.com/): GCP is mentioned in a community discussion as a potential place to deploy, but it's noted that it has cold start issues [^3^]. 5. Azure (https://azure.microsoft.com/): Azure is also mentioned in the community discussion as a potential place to deploy, especially for its multi-container support and lack of cold start issues [^3^]. Remember, you can deploy each part of a Wasp app (client, server, database) anywhere where you can usually deploy Node.js apps or static apps [^4^]. ^1^]: [Deploying Manually > Different Providers (https://wasp-lang.dev/docs/advanced/deployment/manually#different-providers) ^2^]: [Github Issue: Add deploy notion to Wasp files (https://github.com/wasp-lang/wasp/issues/169) ^3^]: [Discord support thread: how do you guys manage dev and prod deployments? (https://discord.com/channels/686873244791210014/1209726362399547402) ^4^]: [Deployment Overview (https://wasp-lang.dev/docs/advanced/deployment/overview) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @ArDev, 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?
ArDev
ArDev2d ago
@kapa.ai what happens if i deploy server on netlify?
kapa.ai
kapa.ai2d ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- Netlify is primarily a static site hosting provider, which means it's designed to host static files for the frontend of your web application. It does not support server-side applications like the server part of a Wasp app, which is a Node.js application. If you try to deploy the server part of a Wasp app on Netlify, it simply won't work because Netlify doesn't have the necessary infrastructure to run server-side code. You'll likely encounter errors during the deployment process or the app won't function as expected. For the server part of your Wasp app, you should consider other providers that support Node.js applications, such as Fly.io (https://fly.io/), Heroku (https://www.heroku.com/), or Railway (https://railway.app/) [^1^]. ^1^]: [Deploying Manually > Different Providers (https://wasp-lang.dev/docs/advanced/deployment/manually#different-providers) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @ArDev, 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?
ArDev
ArDev2d ago
the render instructions are quite confusing, does the github readme provide all the steps? i think others might find it confusing too.
martinsos
martinsos16h ago
Hm I don't htink we have Render instructions, do we? You can't dpeloy server to Netlfiy because Netlify is static hosting and Wasp Server needs "normal" hosting, in the sense that it can host a proper server
Want results from more Discord servers?
Add your server