How to configure Ruby ob Rails for XAMP server? - ruby-on-rails

I have installed Ruby On Rails Application on my harddrive, and i am using XAMPP server. But i was not able to configure it to use on XAMPP server, do Ruby on Rails run on XAMPP server or need some other server like webrick or lighttpd...??

It does not run on XAMPP. It can be integrated in Apache by using Phusion Passenger, but AFAIK it's not available for windows.
So, if you have windows, you'll have to use mongrel or webrick or any other win32-compatible server. I think mongrel is best for you.

Related

Deploying Rails App on Elastic Beanstalk - Is WEBrick automatically replaced by passenger?

Quick Question:
I develop a ruby on rails application on my laptop. Rails has WEBrick installed as an out of the box APPLICATION server.
I deploy my app on amazon web services elastic beanstalk.
I choose The configuration: Ruby 2.2 with Passenger version 2.0.8, which contains:
64bit Amazon Linux 2015.09 v2.0.8 running Ruby 2.2 (Passenger Standalone)
Ruby 2.2.3
RubyGems 2.4.5.1
Passenger 4.0.59 - Application server
nginx 1.8.0 - Web server.
When I deploy my app, does elastic beanstalk automatically replace WEBrick with passenger??? Or-- do I need to install the passenger gem myself?
Thanks!
Figured it out. I used the AWS GUI console online to download the virtual server's instance logs. I checked the ed-activity.log file and saw that the server was started with passenger.
So, yes, Amazon Elastic Beanstalk automatically runs passenger even without the passenger gem in the gemfile.
Side note, when I tried to deploy the rails app with the passenger gem, I ran into a lot of problems. AWS EB runs passenger standalone 4.0.59 while HomeBrew installs passenger 5.0~something or other... This conflict will take down your entire server instance.

Running nginx in rails automatically

I am using rails 2.3.9, rubygems 1.8.24, ruby 1.9.3 and Windows 7 ultimate 64-bit
I just installed nginx as my web server through passenger. Now I want to run nginx as my default server such that when i run ruby script/server, it runs instead of the default WeBrick. Is there any way to do this? Thanks a million.
Nginx doesn't work the way you described. Once it is started, you won't need to run script/server, the rails app will be run at the same time when the Nginx/Apache started.
So, just deploy your rails app following the 'Passenger' manual( in development mode), and you will get your app always running.
so, as conclusion, we can tell that, when deploying a Rails app, Nginx and Apache is in the same group( work together with Passenger), and Mongrel/Webrick/Thin is another group(script/server approach).
You may want to take a look at Foreman.

How can i start a rails application on a tcserver?

I have tried to run rails on mongrel, so i included gem 'mongrel' in the gemfile and started rails server mongrel, the server started fine. But i need to start rails on 'tcserver'. How can i do that?. rails server tcserver throws LoadError: no such file to load -- rack/handler/tcserver which is quite obvious. Please let me know how to start a rails application on a tcserver
Vfabric TC Server is an adaption of Apache Tomcat, and as such is a Java servlet container. It does not run Ruby-on-Rails as is.
You would need to use JRuby, and a tool such as Warbler, which packages Rails apps into WARs compatible with Tomcat.
This Is a good step-by-step for the process. (Replace Tomcat with TC server instance)

How to deploy Rails project in Nginx server using passenger?

In my local, I am using werbrick application server for my localhost.
I have Ruby version 1.9.2 .and Rails version 3.1.
How to deploy On live,with Rails Project On Nginx Server?
And What will be the application server (like passenger module with apache) can be used with Nginx server for Rails 3.1 application?
This blog post should give you a good starting point. This one here goes a little deeper in detail. Note: I used these to get nginx running on my local development machine (OSX 10.7) and to host different rails apps locally without using Webrick. Probably there is more to take care of on a live / production system.

Run RoR on WAMP or on apache under windows

Is it possible to run ror on apache under windows environment? I am having so much trouble with webrick server lately.
You should be able to do so with Passenger / mod_rails.
Here's a relevant Stack Overflow answer:
How to install Ruby on Rails alongside WampServer?

Resources