caprover / caprover-cli

Command Line Interface for https://github.com/caprover/caprover
72 stars 40 forks source link

Deploy command with subdirectory #17

Open tiloio opened 5 years ago

tiloio commented 5 years ago

Why do I can't choose a subdirectory for me application root? It is only possible to have another branch.

But if you have a frontend and a backend you want both in one repository and not in two branches.

githubsaturn commented 5 years ago

You can use custom captain-definition paths.

Now you can deploy your source to each app and the correct.


Another approach is to have one captain-definition file in each directory (frontend and backend). Make no custom change to captain-definition and use the custom tarfile option and create the tar file of your subdirectory yourself, example: https://caprover.com/docs/recipe-deploy-create-react-app.html

tiloio commented 5 years ago

I think both approaches are not very convenient.

If I want to deploy more than two apps in a repo fast, I have to use the tar file option, which is manually very slow and annoying. A proper CLI would be great for that. Otherwise I would always write a shell script which does that for me...