Skip to content

Instantly share code, notes, and snippets.

@edwardloveall
Created October 10, 2021 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardloveall/bcb74592f3b18e3db014a106522733a0 to your computer and use it in GitHub Desktop.
Save edwardloveall/bcb74592f3b18e3db014a106522733a0 to your computer and use it in GitHub Desktop.
[Unit]
Description={{ app_name }}, a crystal app
After=nginx.service
[Service]
Type=simple
User={{ deploy_user }}
Environment="DATABASE_URL=postgres://does@not/mater"
Environment="LUCKY_ENV=production"
Environment="SECRET_KEY_BASE={{ app_secret_key }}"
Environment="HOST=127.0.0.1"
Environment="PORT={{ lucky_port }}"
Environment="APP_DOMAIN=https://{{ app_domain }}"
Environment=SEND_GRID_KEY=unused
WorkingDirectory={{ app_root_path }}
ExecStart={{ app_root_path }}/start_server
Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment