Skip to content

Instantly share code, notes, and snippets.

@breim
Created August 9, 2018 00:15
Show Gist options
  • Save breim/8c766c5d2b82615fff848e8254b377f2 to your computer and use it in GitHub Desktop.
Save breim/8c766c5d2b82615fff848e8254b377f2 to your computer and use it in GitHub Desktop.
[Unit]
Description=Btc Price
After=network.target
[Service]
Type=service
User=ubuntu
WorkingDirectory=/home/ubuntu/btc_price_example
ExecStart=/bin/bash -lc 'RAILS_ENV=production bundle exec rake btc:api'
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