Deploy Ruby on Rails in Glassfish - ruby-on-rails

I just started to learn Ruby on Rails. Now I created a simple project and it worked fine in IDE (Aptana). My question is: How can I deploy it in Glassfish?
Some online articles mentioned JRuby and some Glassfish Gem, but there's no details on how to do it. Do I have to use JRuby and is there a step by step tutorials that tell me how to deploy my rails project in Glassfish?
Thanks.

Yes, you have to use JRuby as Glassfish is a Java EE Application Server.
Here is a tutorial:
http://docs.oracle.com/cd/E19776-01/820-4926/chapterone/index.html

Related

how to execute the rails application in rails 2.3.14?

I am new to the rails programming. I was building my first rails application.
In internet I was searched how to run the rails application in rails 2.3.14 version. But I did not get the answer.
I know how to start the server. But I don't know how run the rails application.
Can anyone please explain me how to run the rails application in 2.3.14 version.
You start a server in Rails 2.3 with:
./script/server start
That starts a local server in development mode, browse to http://localhost:3000 to see your application.
You might want to have a look at the other scripts in the scripts folder too, you will find a subset of modern rails commands. Like
./script/console
to open the Rails console.
But I wouldn't recommend to learn Rails with a 2.3 application. 2.3 has many differences to modern Rails 4.2 or 5.0 application.

How to start and setup Ruby On Rails development with eclipse

I am having excellent experience in Java and eclipse, But new to Ruby on Rails, can anyone point to the best resources, or step which i can follow to start with Ruby On Rails development and enviornment setup for windows.
I think Rails Tutorial is a best place for you to start learning, setup environment and development for Ruby on Rails:
Rails Tutorial
Rails Guide and about API
Some videos Rails Cast
Book Rails 3 way
One more thing, I think many Rails developers will not build Rails application on Window.
I have been using it fine. You just have to setup the correct run config to run rails -s

Rails 2.3.2 app and rails 3 app on the same machine

I upgraded to the latest Rails v3.1.3. And everything is fine, I'm able to run the 2.3 version of one website and the app for v3.1.3.
However I couldn't move it to a new machine, I installed all the required gems with
bundle install
and just cannot start Thin with the 2.3.2 version. I can only run the v3 apps. Thanks
Go read about RVM, and try to configure you machine according to the instructions given there.
As #Syed Aslam said the ideal way of doing is using RVM, but you may set bundler to your Rails 2.x project (because rails 3.x already have bundler..) and run both your projects in the same machine (actually currently I'm doing that).
Following is a tutorial how setting up bundle with Rails 2.x.

Rails 2.x app on RubyMine 3.1

i've upgraded to rubymine 3.1 and now rubymine take all project as rails 3 project, but the mine are not. Does anybody of you face this problem. Ruby mine fires up this message, when i try to run application
Run configuration error: Rails 2.x launcher found instead of Rails 3.x one. You need '/script/rails'
script to launch Rails server. Please update server launcher according to Rails 3.x documentation
My final state is i can run rails 2.x app server from rubymine
Do you know how to achieve that?
I had this problem using Rails 2.3 and RubyMine 3.1 -- my solution was to look at the project settings (File -> Settings) and select Ruby SDK and Gems. Look through your attached rails gems. I had both rails 2.x and rails 3.x gems attached to my project.

How to migrate Refinery CMS to CentOs 5.x

I am new to Ruby on Rails.
I have built a demo site with Refinery CMS on my Mac environment and am ready to deploy it to my Virtual Dedicated Server running CentOS 5.x.
Can anyone walk me through the steps to deploy Refinery CMS on my server?
NOTE: I have successfully installed Ruby, Rails (correct versions to Refinery specs) and all the needed gems including Passenger.
I simply cannot figure out how to make the site work on my server. I would really appreciate some help on this as documentation is difficult to come by, I have already spent over $100 on books and they are of no help.
Thank you!!!!

Resources