caprover-frontend icon indicating copy to clipboard operation
caprover-frontend copied to clipboard

Save captain-definition file when deploying

Open hueyy opened this issue 6 years ago • 3 comments

Is your feature request related to a problem? Please describe. On the deployment screen, when Method 5 is used and a captain-definition file is entered in the text box, when the deploy button is pressed, the captain-definition file is not retained.

Retaining it and re-displaying it whenever a user returns to the deployment page can be useful: it facilitates re-deployment (e.g. when environment variables are updated), or when a mistake (e.g. a typo) is made in the captain-definition file.

Describe the solution you'd like When "deploy" is pressed, the inputted captain-definition file should be saved and re-displayed when the page is viewed subsequently.

Describe alternatives you've considered Of course, captain-definition files are generally short, and one can simply type them up again, but it would save time if they were automatically retained.

Additional context image

hueyy avatar May 20 '19 15:05 hueyy

I'd also love to be able to export definition file for all running projects, after all deploying with docker does not give me anything, I wish I had created project and source code for all deployments

bevinhex avatar Jul 27 '19 12:07 bevinhex

As a note; using GitHub as a deployment method will solve this issue natively, and will also let you version control things, get automatic deployments based on a branch, along with many other pretty standard CD features. I would recommend trying that out.

If you are concerned about sharing code, GitHub now (I believe this is fairly new) lets you have unlimited private repos with 3 contributors; it is also considered best practice to create a read-only account with access to the repo for Caprover, to prevent any tampering in case of a breach. An SSH key is also a good method, because it will prevent a password being exposed, and can be easily deactivated.

Docs: https://caprover.com/docs/deployment-methods.html#automatic-deploy-using-github-bitbucket-and-etc

ItsMeBrianD avatar Aug 13 '19 16:08 ItsMeBrianD

I can recommend @0c370t comment. I switched also and its more than awesome

dg-otrs avatar Nov 05 '19 08:11 dg-otrs