top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Start another rails server from rails application

+2 votes

I have one rails application from this I want to create another new rails application and start in different port.
I done with creating new rails application outside of my main projects but i stuck with starting server...
Please help or suggest any idea...

Now I have one idea and trying that one now but I don't know that way is good or not...the idea is like open new terminal window in background through ruby script and start the application (even this also I stuck, please suggest how to do this if this way is good)

posted Dec 18, 2013 by Dewang Chaudhary

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

I cannot imagine why you are trying to do this, but you can use the ruby system command to run any script you like.

answer Dec 18, 2013 by Luv Kumar
Similar Questions
+1 vote

I was working on a test app and everything was going great. However now when I run "rails server" and none of the changes to the controller files are reflected.

If I make changes to HTML files, those are reflected. And yes, I'm sure am in the right directory editing the correct files.

I can get rid of actions in the controller files and it still works fine. Do I have to do something after I change the ruby files? I thought I could just save them then run 'rails server'... It had seemed to be working doing just that previously.

+1 vote

Can anyone help me to run a rails application in a LAMP or WAMP server?

0 votes

When I view the output of the top command on ubuntu, I notice sometimes there is 6 ruby processes. When are each of these processes spawned?

I cannot imagine that it's every time someone loads the rails application from a different ip address, otherwise I would assume there would be more ruby processes spawned.

+1 vote

I'm wonder how most people securely connect to a Postgres database on a server separate from the app server.

The ActiveRecord docs for a MySQL connection have explicit SSL options, whereas with Postgres it seems one would pass SSL options as documented for libpq.

However a quick Googling returns SO threads with suggestions to use SSH tunnels. Which I guess could be managed with something like AutoSSH.

I'd love to hear from others. Is one method faster than the other, or easier to maintain?