Skip to content

Instantly share code, notes, and snippets.

View pecha7x's full-sized avatar
🚀

Artyom Pechyorin pecha7x

🚀
View GitHub Profile
# see the steps at https://damuz91.medium.com/setting-up-puma-as-a-service-in-systemd-in-ubuntu-18-9d2c1fe774e4
# but to use ExecStart as described bellow
[Unit]
Description=Puma HTTP Server
After=network.target
[Service]
Type=simple
User=deploy
WorkingDirectory=/home/deploy/workflows-assistant/current
@pecha7x
pecha7x / sidekiq.service
Created August 26, 2023 07:40
Sidekiq service config
#
# This file tells systemd how to run Sidekiq as a 24/7 long-running daemon.
#
# Customize this file based on your bundler location, app directory, etc.
#
# If you are going to run this as a user service (or you are going to use capistrano-sidekiq)
# Customize and copy this to ~/.config/systemd/user
# Then run:
# - systemctl --user enable sidekiq
# - systemctl --user {start,stop,restart} sidekiq