Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
New to rails and trying to get everything up and running. Working through railstutorial.org and can see that a local install should look like this:
http://railstutorial.org/images/figures/riding_rails_3-full.png
But instead looks like:
http://www.flickr.com/photos/peteralderson/6890785887/in/photostream
Any ideas where I went wrong?
It's related to the new "asset pipeline" added in Rails 3.1.
The reason the image isn't showing up could be caused by multiple things -
Is the server running in development or production mode? (Development compiles assets on the fly, production assumes they have been pre-compiled.)
Do any messages appear in the server log relating to "rails.png"?
Its a default rails home page. It shows your local configured environment when you click on link about your applications environment. You need not to do anything whit this page. In place of this page you need to set your default home page. And yes there is nothing wrong with the installation.
Simply means Rails has changed from what you have in the tutorial, try to check up the new things with the version of rails you have on your machine, best is to ensure you are using the same version of rails from the tutorial in practice else you might end up confused
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
Will it be any issues if I let my app in development mode forever? It works fine like that and if I change to production mode it gives some errors and I don't have the time or expertise to solve them.
So, if I make some adjustments to the development mode (like allow caching etc) will it run slower than in production? There will be additional issues?
Thanks!
One more problem is when you get error messages they will be logged but not rendered to the user, instead the static error page from your public directory will be used in case of production environment.
If you getting error in migration then create a empty database using development environment and after creating database with development mode use it as production database. This will easily solve your problem.
As you noticed, there are things like caching which are disabled in development mode.
Checking out the config environment files (and docs and source code) should reveal more.
But you should probably try to figure out the production issues. Database configuration and migrations could be part of this, depending on the particular errors you're seeing.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
So I'm about to leave for africa for 2 weeks where i will for the most part not have an internet connection, during which i am going to start learning ruby on rails so that i can implement it in the social network i am going to start building when i get back. Im planning on saving the tutorials from rubyonrails.org to my computer before i go so that i can still use them but it seems like almost all of them are dependent on me being able to download files from the internet(for example won't "$ rails new blog" pull that info from the rails server?), does anyone know of a way i could use ruby (in particularly these tutorials) without the internet (like maybe i just need to pre-install a bunch of gems or something?)
I have basically no experience with rails so sorry if my interpretation of ruby and these tutorials is incorrect.
Theoretically, yes, practically, no. Sure, you can fire up a local web server and write code, but you obviously don't want to write everything yourself, you want to take advantage of ruby's gem package system. This will, obviously require an internet connection.
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!
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.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I have been planning to host a site built on rails on the web. How can choose the correct hosting site? How do I know they have installed the same version of rails which I worked on? Can I ask the hosting site to install the required rails version and the gems. Or would it be only done to dedicated servers. If you guys wanna suggest any hosting sites, I would also welcome that.
I love so much heroku because is easy to use and it offer a scalable environment.
But i use dedicated servers with apache+passenger to run my rails application so i can do what i wan't on my system.
Some hosters offers a console to manage your gems so you can run your application in any version of rails.
If you're Linux savvy, you could also go with a VPS solution such as Linode. A little more work on your end, but you have complete control and will know exactly what versions of what are being used.
This website is good to choose Rails hosting http://www.railshosting.org/
i am working for a startup and they are currently hosting at heroku. Its built for rails and very good in terms of customer support.
the name "engineyard" is being heard these days a lot..you can probably give that a try..