class
AmberCLI::Documentation::SecurityAndConfiguration
- AmberCLI::Documentation::SecurityAndConfiguration
- Reference
- Object
Overview
Security and Configuration
Environment File Encryption
The encrypt command provides secure environment file management.
Usage
amber encrypt [ENVIRONMENT] [options]
Options
-e, --editor=EDITOR- Preferred editor--noedit- Skip editing, just encrypt
Examples
Encrypt production environment:
amber encrypt production
Encrypt staging with custom editor:
amber encrypt staging --editor nano
Just encrypt without editing:
amber encrypt production --noedit
Configuration Files
Amber applications use several configuration files:
.amber.yml
Project-specific configuration:
database: pg
language: slang
model: granite
watch:
run:
build_commands:
- "crystal build ./src/my_app.cr -o bin/my_app"
run_commands:
- "bin/my_app"
include:
- "./config/**/*.cr"
- "./src/**/*.cr"
Environment Files
config/environments/development.ymlconfig/environments/production.ymlconfig/environments/test.yml