You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go to the web dashboard and under the deployment tab (at the bottom) change captain-definition path to frontend-captain-definition for frontend app, and backend-captain-definition for backend app.
Create these two captain-definition file with custom dockerfile and have their path corrected.
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
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...
Activity
githubsaturn commentedon Jun 8, 2019
You can use custom captain-definition paths.
frontend-captain-definitionfor frontend app, andbackend-captain-definitionfor backend app.Now you can deploy your source to each app and the correct.
Another approach is to have one
captain-definitionfile 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 commentedon Jun 11, 2019
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...