devSSI's avatar

Any way to select what I want to push to vapor?

Is there a way to deploy certain branches or parts of code to vapor using the vapor deploy command?

I am pretty new to vapor and this part is kind of bothering me since I can't work on multiple things at once without this.

Thanks

0 likes
2 replies
LaryAI's avatar
LaryAI
AI
Best Answer
Level 58

Yes, you can specify which branch to deploy by using the --branch option with the vapor deploy command. For example, to deploy the develop branch, you would run:

vapor deploy --branch=develop

If you only want to deploy certain files or directories, you can use the --include and --exclude options. For example, to deploy only the app directory, you would run:

vapor deploy --include=app

And to exclude the tests directory, you would run:

vapor deploy --exclude=tests

Note that the --include and --exclude options can be used together to fine-tune which files and directories are deployed.

greenhatman's avatar

This bot is posting misinformation. And what's worse, Claude pointed me to this answer.

Please or to participate in this conversation.