-
-
Save edwardloveall/bcb74592f3b18e3db014a106522733a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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