Skip to content

Add Linux/macOS deployer script - #2

Open
alirahimi818 wants to merge 3 commits into
B3hnamR:masterfrom
alirahimi818:master
Open

Add Linux/macOS deployer script#2
alirahimi818 wants to merge 3 commits into
B3hnamR:masterfrom
alirahimi818:master

Conversation

@alirahimi818

@alirahimi818 alirahimi818 commented Jun 5, 2026

Copy link
Copy Markdown

Summary by cubic

Adds a cross-platform Bash deployer for Linux/macOS with full Fastly Compute deploy/redeploy/manage flow and updated setup docs. Also hardens the installer with better curl error handling and a safer Node.js auto-install. This brings feature parity with the Windows installer.

  • New Features

    • Deploy-Fastly-Linux.sh: interactive deployer for Linux/macOS.
    • Builds Wasm via npm run build; packages, uploads, validates, activates.
    • Creates/links a Config Store with TARGET_BASE, TARGET_HOSTNAME, RELAY_PATH.
    • Adds backend with configurable timeouts; supports create, redeploy, list, view, edit ENV, delete.
    • Runs health check and prints a ready-to-use VLESS URL.
    • Encrypts and saves the Fastly API token (AES-256) and tracks local deploy state.
    • Tries to auto-install Node.js if missing (apt, brew, dnf); requires bash, curl, python3, openssl, npm.
    • Ensures @fastly/js-compute runtime is present before build.
  • Bug Fixes

    • add_fastly_backend and upload_fastly_package now check HTTP status codes and surface failures.
    • Node.js install is safer: downloads the NodeSource setup script to a temp file before sudo execution (no piping to sudo bash).

Written for commit 71c5c8a. Summary will update on new commits.

Review in cubic

Bash equivalent of Deploy-Fastly-Windows.ps1 for Linux and macOS users.
Requires: bash, curl, python3, openssl, npm.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 2 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread Deploy-Fastly-Linux.sh Outdated
Comment thread Deploy-Fastly-Linux.sh Outdated
- P1: add HTTP status checking to add_fastly_backend and upload_fastly_package
  instead of silently discarding curl output
- P2: download NodeSource setup script to temp file before sudo execution
  instead of piping directly to sudo bash
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.

1 participant