Deploy Wasp App do Azure

Has anyone ever deployed a Wasp App to Azure and if so is there any guidance on how to do so? Preferably on how to do it via CI (Github Actions).
1 Reply
kapa.ai
kapa.ai3mo ago
Hi @Gwaggli. 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, but the provided knowledge sources do not contain specific information about deploying a Wasp app to Azure. However, the general steps for deploying a Wasp app are as follows: 1. Generate deployable code using the wasp build command. This will generate the code for the whole app in the .wasp/build/ directory.
wasp build
wasp build
2. Deploy the API server (backend). There's a Dockerfile in the .wasp/build directory that defines an image for building the server. You would need to deploy this Docker image to your hosting provider and ensure the required environment variables are correctly set up. 3. Deploy the web client (frontend). To do this, you need to build the web app in the .wasp/build/web-app directory and then deploy it to any static hosting provider.
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
4. Deploy a PostgreSQL database and ensure it's running. Any PostgreSQL database will do, as long as you provide the server with the correct DATABASE_URL environment variable and ensure that the database is accessible from the server. As for deploying via CI (Github Actions), there is an open issue on the Wasp Github repository about implementing a Github CI Action that builds your Wasp app. A contributor has also shared a link to a Github action for deploying Wasp apps, which might be useful. However, these steps and resources are not Azure-specific. For Azure-specific deployment steps, you might need to refer to Azure's documentation or seek advice from the Azure community. Sources: - Deploying a Wasp App (https://wasp-lang.dev/docs/advanced/deployment/manually#deploying-a-wasp-app) - Github Issue: Implement a Wasp Github CI Action (https://github.com/wasp-lang/wasp/issues/602) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Gwaggli, 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?
Want results from more Discord servers?
Add your server