From 92b4c4cf016262fbe5c8b799f8a9e532e8e00c86 Mon Sep 17 00:00:00 2001 From: Kasra Bigdeli Date: Sun, 1 Oct 2023 21:07:44 -0700 Subject: [PATCH] Update troubleshooting-pro.md --- docs/troubleshooting-pro.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/troubleshooting-pro.md b/docs/troubleshooting-pro.md index 08e577a..d937167 100644 --- a/docs/troubleshooting-pro.md +++ b/docs/troubleshooting-pro.md @@ -36,6 +36,24 @@ docker exec -it $(docker ps --filter name=captain-captain -q) npm run disable-ot ``` +## Deploy with OTP enabled + +When you have OTP enabled, you cannot deploy using regular `caprover deploy` as it requires 2FA token (`enter OTP token as well`). Instead, you should use App Tokens: +```bash +caprover deploy --caproverUrl https://captain.domain.com --appToken 123456123456123456 --appName my-app -b main +``` + +You can enable App Token from Deployment tab. Alternatively, you can use the following format (not recommended): + +```bash +CAPROVER_OTP_TOKEN=123456; caprover login + +## or + +CAPROVER_OTP_TOKEN=123456; caprover deploy +``` + + ## Email support Our paid Pro plan includes a 24hr SLA email support. You can email us at `pro.support at/caprover/dot/com` to get support. Please be sure to use the same email that you've used for purchase.