Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #6965
| Newsgroups | comp.lang.ruby |
|---|---|
| Date | 2014-04-24 08:43 -0700 |
| References | <74a9a35a-886b-4e8a-96f2-2fcc6c7f6ae9@googlegroups.com> <21bea2b6-778f-4c05-be9d-4f2ae3d329fd@googlegroups.com> <2b30ae1d-d0b7-47a4-b94a-3d42d896163d@googlegroups.com> |
| Message-ID | <772f90dc-4e6c-4bad-9bb1-1869f37e5af1@googlegroups.com> (permalink) |
| Subject | Re: Run ruby script remotely |
| From | Doug Hall <doughalldev@gmail.com> |
If it's just a script that simply needs to be triggered to run at will, then Capistrano is your best bet. If your script doesn't change much, and can simply be run at a specific interval or time, then just set up cron on each server to do the job for you. Capistrano is meant to simplify tasks that administrators have to do on their servers frequently. With Capistrano, you can set up a task that talks to multiple servers at a time. You'll need to connect to the servers through Capistrano, which runs on YOUR machine. However, you'll need permissions on each server to be able to upload and execute your script. Also, you'll need the same version of ruby (and gems) installed on each server. You'll probably need at least two custom Capistrano tasks: one to upload the script itself, which you'll use whenever the script is modified, and one to "execute" it on the remote servers. On Tuesday, April 22, 2014 3:01:56 PM UTC-5, Melb wrote: > Yes, I am able to deploy ruby(not rails) script to all servers > > but how can I run it without connecting to servers > > Can capistrano help to run it? > > How can I control the script start/stop... > > > > > > On Tuesday, April 22, 2014 5:07:56 PM UTC+2, Romiras wrote: > > > Once deployed (uploaded) a script to all machines you can run it. > > > > > > You can deploy your application with Capistrano ( see http://capistranorb.com/documentation/overview/what-is-capistrano/ ) with single deployment scenario written in Capistrano DSL. > > > > > > > > > > > > Is it what you wanted? > > > > > > > > > > > > On Tuesday, April 22, 2014 1:29:17 AM UTC+3, Melb wrote: > > > > > > > Hi, > > > > > > > > > > > > > > I have a ruby script which I tested locally on my machine, > > > > > > > > > > > > > > I want to execute it on three remote servers, Is there a way to execute it remotely without connecting to every machine and executing it > > > > > > > > > > > > > > Or Can I use a master server to run the script on the three machines, by connecting to only one server > > > > > > > > > > > > > > > > > > > > > > > > > > > > rgds
Back to comp.lang.ruby | Previous | Next — Previous in thread | Find similar
Run ruby script remotely Melb <melaggouni@gmail.com> - 2014-04-21 15:29 -0700
Re: Run ruby script remotely Romiras <romeeras@gmail.com> - 2014-04-22 08:07 -0700
Re: Run ruby script remotely Melb <melaggouni@gmail.com> - 2014-04-22 13:01 -0700
Re: Run ruby script remotely Doug Hall <doughalldev@gmail.com> - 2014-04-24 08:43 -0700
csiph-web