Last active
March 7, 2024 23:21
-
-
Save olaronymax/eff3cca52698903e50b5ea1adf29b1f3 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] | |
Requires=network.target | |
PartOf=chatwoot.target | |
[Service] | |
Type=simple | |
User=chatwoot | |
WorkingDirectory=/home/chatwoot/chatwoot | |
ExecStart=/bin/bash -lc 'bin/rails server -p $PORT -e $RAILS_ENV' | |
Restart=always | |
RestartSec=1 | |
TimeoutStopSec=30 | |
KillMode=mixed | |
StandardInput=null | |
SyslogIdentifier=%p | |
Environment="PATH=/home/chatwoot/.rvm/gems/ruby-3.2.2/bin:/home/chatwoot/.rvm/gems/ruby-3.2.2@global/bin:/home/chatwoot/.rvm/rubies/ruby-3.2.2/bin:/home/chatwoot/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/home/chatwoot/.rvm/bin:/home/chatwoot/.rvm/bin" | |
Environment="PORT=3000" | |
Environment="RAILS_ENV=production" | |
Environment="NODE_ENV=production" | |
Environment="RAILS_LOG_TO_STDOUT=true" | |
Environment="GEM_HOME=/home/chatwoot/.rvm/gems/ruby-3.2.2" | |
Environment="GEM_PATH=/home/chatwoot/.rvm/gems/ruby-3.2.2:/home/chatwoot/.rvm/gems/ruby-3.2.2@global" | |
---- | |
[Unit] | |
Requires=network.target | |
PartOf=chatwoot.target | |
[Service] | |
Type=simple | |
User=chatwoot | |
WorkingDirectory=/home/chatwoot/chatwoot | |
ExecStart=/bin/bash -lc 'dotenv bundle exec sidekiq -C config/sidekiq.yml' | |
Restart=always | |
RestartSec=1 | |
TimeoutStopSec=30 | |
KillMode=mixed | |
StandardInput=null | |
SyslogIdentifier=%p | |
Environment="PATH=/home/chatwoot/.rvm/gems/ruby-3.2.2/bin:/home/chatwoot/.rvm/gems/ruby-3.2.2@global/bin:/home/chatwoot/.rvm/rubies/ruby-3.2.2/bin:/home/chatwoot/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/home/chatwoot/.rvm/bin:/home/chatwoot/.rvm/bin" | |
Environment="PORT=3000" | |
Environment="RAILS_ENV=production" | |
Environment="NODE_ENV=production" | |
Environment="RAILS_LOG_TO_STDOUT=true" | |
Environment="GEM_HOME=/home/chatwoot/.rvm/gems/ruby-3.2.2" | |
Environment="GEM_PATH=/home/chatwoot/.rvm/gems/ruby-3.2.2:/home/chatwoot/.rvm/gems/ruby-3.2.2@global" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment