GithubHelp home page GithubHelp logo

Comments (7)

seuros avatar seuros commented on June 25, 2024

i added this line to my sudoer file (/etc/sudoer.d/deploy)

deploy ALL=NOPASSWD:/usr/sbin/service, /bin/mv, /usr/sbin/update-rc.d,/usr/bin/touch

But i think it bad, since it give deploy user the right to move files. You can always remove the ' /bin/mv, /usr/sbin/update-rc.d,/usr/bin/touch' reference after installation.

I'm thinking about another solution that won't require such privilege.

I will be updated the gems to reflect this soon. The next version will have jungle tasks as option.

from capistrano-puma.

kyledecot avatar kyledecot commented on June 25, 2024

Okay, now it appears to be trying to run RAILS_ENV=production sudo update-rc.d -f puma defaults which doesn't work on centos and returns w/ a sudo: update-rc.d: command not found.

from capistrano-puma.

seuros avatar seuros commented on June 25, 2024

yes. Centos/Redhat uses chkconfig instead update-rc.d.
you have to run

 chkconfig --add puma
 touch /etc/puma.conf #to create the conf file.

can you check if centos has : service ?

I will install centos tonight and try to make it work

from capistrano-puma.

kyledecot avatar kyledecot commented on June 25, 2024

Centos does have service. I ran the two commands above (ssh'ed in as the deploy user). Executing service puma now gives me

/etc/init.d/puma: line 28: /lib/init/vars.sh: No such file or directory

from capistrano-puma.

seuros avatar seuros commented on June 25, 2024

Can you comment line 28 of /etc/init.d/puma and see if it compatible ?
This gist https://gist.github.com/niwo/4526179 and https://fedoraproject.org/wiki/Packaging:SysVInitScript?rd=Packaging/SysVInitScript#Initscript_template might be useful.

Note: The gist is not fully compatible with the paths(state,pid) of the current setup.

We will have to write another compatible start-up script if this fail.

from capistrano-puma.

seuros avatar seuros commented on June 25, 2024

@kyledecot , i updated the gem and it should now support Centos. Can you test it in your side ?

from capistrano-puma.

khiem-nguyen avatar khiem-nguyen commented on June 25, 2024

@seuros Bug on Amazon linux(Fedora), install debian instead of rhel

from capistrano-puma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.