daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Oct 20th, 2018 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Unit]
  2. Description=Peatio Service
  3. After=network.target mysqld.service
  4. StartLimitInterval=0
  5.  
  6. [Service]
  7. Type=simple
  8. User=deploy
  9. Group=deploy
  10.  
  11. WorkingDirectory=/home/deploy/ftp/peatio
  12.  
  13. Environment="PATH=/home/deploy/.rvm/gems/ruby-2.5.0/bin:/home/deploy/.rvm/gems/ruby-2.5.0@global/bin:/home/deploy/.rvm/rubies/ruby-2.5.0/bin:/home/deploy/.rvm/bin:/home/deploy/bin:/home/deploy/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
  14. Environment="GEM_HOME=/home/deploy/.rvm/gems/ruby-2.5.0"
  15. Environment="GEM_PATH=/home/deploy/.rvm/gems/ruby-2.5.0:/home/deploy/.rvm/gems/ruby-2.5.0@global"
  16. Environment="DATABASE_HOST=localhost"
  17. Environment="DATABASE_USER=root"
  18. Environment="DATABASE_PASS=pass"
  19. Environment="RAILS_ENV=production"
  20. Environment="SECRET_KEY_BASE=secret"
  21.  
  22. ExecStart=/home/deploy/.rvm/bin/rvm-exec ruby-2.5.0 bundle exec puma
  23.  
  24. #Restart=always
  25. #RestartSec=1
  26.  
  27. [Install]
  28. WantedBy=multi-user.target
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand