Created
December 10, 2024 23:41
-
-
Save FLWallace105/2aef7840feda9768cdaab91b94c9061d to your computer and use it in GitHub Desktop.
Create Sinatra SystemD Service with RBENV
This file contains hidden or 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=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