Skip to content

scripts: add deploy-new-server.sh for fresh-box provisioning - #2

Merged
bejranonda merged 1 commit into
mainfrom
deploy-new-server-script
May 8, 2026
Merged

bejranonda merged 1 commit into
mainfrom
deploy-new-server-script

Conversation

@bejranonda

Copy link
Copy Markdown
Owner

Summary

One-shot deploy script for a bare Ubuntu/Debian server. Installs prereqs, clones the repo, generates .env with random CKP_ADMIN_TOKEN + CouchDB password, optionally patches the Caddyfile with DOMAIN, then hands off to server.sh deploy.

Usage

sudo ./scripts/deploy-new-server.sh
sudo DOMAIN=ckp.example.com ADMIN_EMAIL=ops@example.com ./scripts/deploy-new-server.sh
# curl-pipe friendly:
curl -fsSL https://raw.githubusercontent.com/bejranonda/Cloud-Knowledge-Platform/main/scripts/deploy-new-server.sh \
  | sudo DOMAIN=ckp.example.com bash

Test plan

  • Run on a fresh Ubuntu 24.04 box
  • Verify .env chmod 600 with random tokens
  • Verify server.sh status reports backend + caddy active
  • Re-run on the same box (idempotent)

🤖 Generated with Claude Code

One-shot script for bare Ubuntu/Debian: installs prereqs, clones the repo,
generates .env with random admin token + CouchDB password, optionally
patches the Caddyfile with DOMAIN, then hands off to server.sh deploy.
@coderabbitai

coderabbitai Bot commented May 8, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@bejranonda has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 35 minutes and 2 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: be9fa70c-cd63-4d9c-b2f6-085bab31bdf8

📥 Commits

Reviewing files that changed from the base of the PR and between a0201ba and e05807d.

📒 Files selected for processing (1)
  • scripts/deploy-new-server.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch deploy-new-server-script

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@bejranonda
bejranonda merged commit ddc6f44 into main May 8, 2026
3 checks passed
@bejranonda
bejranonda deleted the deploy-new-server-script branch May 8, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants