Exclude certain files or folders on Fly Deploy

I'm using Cursor charged with Wasp Docs and other docs inside @src/. I want to deploy some changes with Fly but I don't want the Wasp docs to be uploaded to my server. How can I exclude it somehow?
2 Replies
kapa.ai
kapa.ai3d ago
Hi @NEROX. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- You can exclude certain files or folders from being copied during the build process by using a .waspignore file. This file works similarly to a .gitignore file. You can specify the files or directories you want to exclude by adding them to the .waspignore file. Here's how you can do it: 1. Create a .waspignore file in your project root directory (the same directory where your main.wasp file is located). 2. In the .waspignore file, add the paths to the files or directories you want to exclude. Each path should be on a new line. For example, if you want to exclude a directory named docs located in the src directory, you would add src/docs to the .waspignore file. Please note that the .waspignore file is created by default when you create a new Wasp project using the wasp new command. If it's not present in your project root directory, you can create it manually. For more information, you can refer to this Github issue (https://github.com/wasp-lang/wasp/issues/192) where the use of a .waspignore file is discussed. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @NEROX, 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?
NEROX
NEROX3d ago
Deploying, now I will see Edit: Works!✅
Want results from more Discord servers?
Add your server