Trouble launching my first Ruby on Rails application? [closed] - ruby-on-rails

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I have taken the entire set of code and put it on my server, but it doesn't work. The pages do not load following the URLs.
I want to launch my Ruby on Rails application on a hosted service like mochahost or godaddy.
Thanks

You have just copied all the files over and that's it? I'm sorry to tell you this but this is not PHP :-)
Rails uses an application server to handle requests. Your file structure is irrelevant to the request (that's what the config/routes.rb is for).
I guess you take a look at this page: RubyOnRails deployment
Further reading: Application server # wikipedia

If you are totally new to rails, I highly suggest using a service like Heroku over traditional shared hosting. I am not too far ahead of you in learning rails but I can say with 100% certainty that I would not want the added hassle of managing my own rails server environment at this stage.
Check out Michael Hartl's book if you haven't already. http://rails-4-0.railstutorial.org/book It will walk you through a Heroku setup and deployment.
Also, did I mention Heroku is free until you scale up? Perfect for learning!

Related

Setting up Ruby on Rails [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
How do you go about setting up a Rails application on a standard web server? I want to just throw my application into cgi-bin and run it, but Rails clearly wants to control the file system and how file accesses are routed. So it's all very well working on my application in its little sandbox, but how do you actually close the gap and serve an application?
You need to Create Ruby on Rails app first then you can deploy it on Heroku. Here is very nice reference link from scratch..
https://devcenter.heroku.com/articles/getting-started-with-rails4
Hope this will help you..to create Rails Demo App and all steps of deploying on Heroku.
Deploy
There are a plethora of tutorials on how to deploy rails applications correctly.
Most notable (we've recently used) are:
DigitalOcean - Deploying to a VPS
GoRails - Deploying on Ubuntu with Nginx
Heroku - Deploying to Heroku with GIT
This will give you information on how to deploy to either the Heroku platform, or one of the many VPS type hosting providers out there. We use Rackspace, and the DigitalOcean & GoRails tutorials were invaluable when setting up our server again
Rails
Although I'm not totally in tune with how Rails runs on file-system level, you have to appreciate that Rails runs with a multitude of dependencies & can also be compiled at run time
Processing requests in this way has to be handled by more than just the standard hosting software, and indeed, the most recommended solution from the Rails core team is Phusion Passenger

How to integrate wordpress blog into my rails web app at the same domain? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have an existing Rails web application at www.xyz.com. I bought the domain using namecheap and have deployed it using Heroku. I want to integrate a Wordpress blog at www.xyz.com/blog. I've never done this before and am confused how to go about doing this; should I integrate Wordpress using a wordpress gem in my rails app and deploy it or do I have to do something with Namecheap to integrate? I'm super confused and am not sure where to start. Any advice?
If you deploy a Rails application at Heroku, there is no way you can integrate a WordPress blog under the same hostname.
The major problem is that the Rails app is written in Ruby and WordPress is written in PHP. Ruby and PHP are two different languages.
My recommendation is to use a separate hostname. You can have your application hosted at Heroku under (www.)example.com, and host your WordPress blog elsewhere under blog.example.com.
This is quite easy and by far the best solution.
If can technically run a WordPress blog and a Rails app under the same hostname (I know for sure because I'm exactly doing the same for my personal site), but it involves some system administration knowledge (and I'm not sure you may have the necessary skills to perform such task) and you will need a custom server.
For your information, my configuration is based on Nginx as a front-end proxy. If the request comes a /blog location, I proxy it to the PHP interpreter. Otherwise, I proxy it to the Rails application interpreter (puma or unicorn).
This cannot be accomplished using Heroku, unless (but I haven't tried it) you use a custom build pack.

How to host a rails web application [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have developed a nifty web application using rails and would like to host it. Unfortunately I'm unsure how i can cheaply host my application. I'm aware of various deployment tools like capistrano and I've also herd of Heroku. I presume these tools help in hosting.
However can anyone provide me the steps to host a web app in details esp using rails and what all options i can have for doing it?
EDIT
It has been pointed out to me that a link in my answer does no longer work. Which is not that surprising, since this is a 3 year old answer.
Because It seems like people are still stumbling on this answer, I would like to redirect people to this page:
https://gorails.com/deploy/ubuntu/16.04
It should have all the information you need to deploy a rails application.
End EDIT
I recommend that you check out
http://rubyonrails.org/deploy
to start with.
And also
http://www.cloudfoundry.com/
and
https://www.engineyard.com/
are both great hosts for any rails application, and they also have some pretty easy to follow step-by-step tutorials on how to do so.
As Leito mentioned Heroku in his answer, I would like to point you to
http://www.codeschool.com/code_tv/heroku
If you choose Heroku as your host, you could check out that video as it shows you how to deploy a simple rails application.
Heroku is the easiest in my opinion, I recommend you start here https://devcenter.heroku.com/articles/rails3
Heroku is more an application hosting and uses git to deploy your app, so no need of capistrano or similar tools.

Hosting for a Ruby on Rails application [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am a Ruby on Rails developer and I am planning to purchase an hosting space in order to publish my web application (I'm developing a small Social Network). This is my first time that I try to deploy a Ruby on Rails application, so I am not expert on the matter.
I would like to find a "compromise" between performance and price. I think that for now a shared server it is enough (maybe) for my needs (suggestions are appreciated...).
In localhost I am using
Ruby on Rails 3.0.9
ruby-1.9.2-p136
Apache
Phusion Passenger
MySql
so the hosting server should satisfy the above requisites.
More: in my application I am using the Paperclip gem so another requisite should be Image-Magick.
What hosting service do you advice for my needs? What should I have to care when I purchase a hosting space for RoR? And, most importantly, which hosting service do you advice??
P.S.: if you need some other information just ask and I will update the question.
Even though this question is slightly off-topic on SO, I'd recommend you look at Heroku:
http://www.heroku.com/
Hosting a Rails app can't be easier and you can start with the free plan and then scale up as needed.

Solid tutorial for building a simple wiki application in Ruby on Rails? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I've searched and I've found a lot that are antiquated.
Any suggestions?
You can easily create a wiki with zena (a rails CMS):
You create an empty application with
zena wiki
You initialize an empty database
cd wiki; rake zena:init RAILS_ENV=production
You set the publish, write and read groups of a node to "public" (use the wrench tool, "drive" tab)
You change the anonymous user's status from "moderated" to "user" (user management by clicking on the "Admin User" link)
And you have a wiki with multilingual support (if you need it) and the usual versioning, diff tools and image management.
I think building an application like that from scratch would be much easier trust me! The reason why I dont suggest building from CMS or any other gem is because you need to learn how it works which might be easier but integrating it into your application is tough and it gets tougher especially when the versions are different. I built wiki for one of the social networking website that I was building. It is simple. I built it just like I built a blog. Each blog has a post and an Author just like wiki has a user and a question asked by the user.
Blog has comments and wiki has answer to the question. Every other minor details follow along. I am still in the process of building a robust wiki with these basics. So I will be happy to help with any more questions that follow along.
The video that helped me with this process is:
http://media.rubyonrails.org/video/rails_blog_2.mov
Feel free to ask any more doubts that follow. I will be happy to share the code that I built.
maybe you want to take a look at the instiki sourcecode: http://github.com/parasew/instiki - there is lots of code you can reuse. have fun!
You looked at these? http://www.digitalmediaminute.com/article/1816/top-ruby-on-rails-tutorials
None of them are "solid"?
Maybe looking at working examples might help you as well. I do not know wiki tutorial for rails, but know about these wiki solutions, written on the top of rails and without rails, but written in ruby:
irwi is a complete wiki plugin for Ruby on Rails
instiki - another wiki running on rails
riki wiki - this is fun: it was written in ruby for the shortest wiki contest, it is not documented, but the code might explain itself

Resources