Skip to content

Instantly share code, notes, and snippets.

@FLWallace105
Created December 10, 2024 23:41
Show Gist options
  • Save FLWallace105/2aef7840feda9768cdaab91b94c9061d to your computer and use it in GitHub Desktop.
Save FLWallace105/2aef7840feda9768cdaab91b94c9061d to your computer and use it in GitHub Desktop.
Create Sinatra SystemD Service with RBENV
[Unit]
Description=Start Sinatra Charge Listener Server
AssertPathExists=/home/your_path/charge_listener
[Service]
Type=simple
User=your_user
WorkingDirectory=/home/your_path/charge_listener
ExecStart=/home/your_path/.rbenv/bin/rbenv exec bundle exec puma --config config/puma.rb
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment