mirror of
https://github.com/caprover/caprover
synced 2026-05-29 23:00:54 +00:00
Merge branch 'master' of github.com:githubsaturn/captainduckduck
This commit is contained in:
@@ -19,7 +19,7 @@ Zip the content of your project into a tarball (`.tar`), go to your Captain web
|
||||
This method is perhaps the most convinient one. This method automatically triggers a build when you push your repo to a specific branch (like `master` or `staging` or etc). To setup this, go to your apps settings and enter the repo information:
|
||||
- github/bitbucket username(email address): This is username that will be used when Captain downloads the repo.
|
||||
- github/bitbucket password: You can enter any non-empty text, like `123456`, for public projects.
|
||||
- repo: This is the main HTTPS address of repo, in case of github, it is in `github.com/someone/something` format.
|
||||
- repo: This is the main HTTPS address of repo, in case of github, it is in `github.com/someone/something` format. Make sure it does NOT include `https://` prefix and `.git` suffix.
|
||||
- branch: The branch you want to be tracked, for example `master` or `production`...
|
||||
|
||||
After you enter this information, save your configuration. And go to your apps page again. Now, you'll see a new field call webhook. Simply copy this webhook to your github/bitbucket repo. Captain listens to `POST` requests on this link and triggers a build.
|
||||
|
||||
@@ -10,9 +10,9 @@ sidebar_label: Static React App
|
||||
Here is a small step-by-step guide to deploy a `create-react-app` as a static site.
|
||||
Unlike the regular `captainduckduck deploy` that would deploy source files on a `NodeJS` container then build your app and run a small node server to serve your files, this guide shows how you can build locally and deploy the static bundle in a simple static server container.
|
||||
|
||||
The big advantage of this technic is that the build happens on your machine where you already have `node_modules` and probably more computing power than on your server. You also only upload minified files and not the entire codebase. Because of these, the deployment is way faster and less computing intensive for your server.
|
||||
The big advantage of this technique is that the build happens on your machine where you already have `node_modules` and probably more computing power than on your server. You also only upload minified files and not the entire codebase. Because of these, the deployment is way faster and less computing intensive for your server.
|
||||
|
||||
While this guide uses `create-react-app` as an example, you can apply the same technic for any static project (VueJS, Parcel, Angular...).
|
||||
While this guide uses `create-react-app` as an example, you can apply the same technique for any static project (VueJS, Parcel, Angular...).
|
||||
|
||||
## Build your app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user