Skip to content

Parcela 0.3.0: one parcela.yaml format with setup hooks

Choose a tag to compare

@github-actions github-actions released this 18 Oct 11:27
6c59d9d

Release Notes

parcela.yaml has a new format, version 1. Files written for 0.2 or earlier need rewriting, and parcela doctor links to the new format. The configuration reference shows the new format.

Added

  • hooks.setup runs once in each new environment and hooks.prestart on every up, after the services they depends_on and before every other service. A failed hook stops up. up --setup and restart --setup run setup again.
  • Services take depends_on, working_dir, env and, without http, a healthcheck command. Dependencies wait for readiness.
  • PARCELA_DATA_DIR, PARCELA_ENVIRONMENT_NAME and PARCELA_PRIMARY_DIR.
  • Top-level x- keys are ignored, for YAML anchors.
  • examples/rails-postgres, and a tutorial app with a SQLite database per environment.

Changed

  • One format: version and project are required, and every service is a mapping under services with a command. HTTP services declare http: {healthcheck, subdomain}; the one without subdomain gets the environment's URL.
  • Tasks take a shell command instead of argv. Arguments after -- are appended.
  • parcela logs without a service prints every service, worker and hook, each line prefixed with its name.

Removed

  • The top-level short form (web: bin/dev), workers, default_service, environment (now env), inherit_environment, shutdown_timeout_seconds and the process_compose pass-through.

Fixed

  • parcela doctor names the right Process Compose tap (f1bonacc1/tap/process-compose) and links each backend's install page.

Install parcela 0.3.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/davafons/parcela/releases/download/v0.3.0/parcela-installer.sh | sh

Download parcela 0.3.0

File Platform Checksum
parcela-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
parcela-x86_64-apple-darwin.tar.gz Intel macOS checksum
parcela-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
parcela-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum