Does anyone know how to deploy a RoR app to blacknight i.e. what changes do i need to make to the routes?
Blacknight does not offer Ruby on Rails on shared hosting plans. You would need a cloud server if you want to use Ruby on Rails (see: http://www.blacknight.com/cloud-hosting.html )
Related
Best practice for Scalable project on ruby on rails. Problem: I don't understand the difference between web and app server in ror projects.
I understood that the differences between application and web servers are webserver handles requests and application has business logic. However I don't quite understand how I can implement it in my ruby on rails application.
So, I have, for example, two instances and ruby on rails application.
On the first server I want to set up a web server, and on the second one I want to install application server.
But, for example, I use passengers as my webserver that makes easier to deploy my ror application. So, will I have any benefits implementing such logic? Can I use passenger as an cache server or something like this? Is it possible to put passenger on another server and send request to ror application? Or I totally wrong and don't understand the conception?
Note: I just found amazon web application hosting architecture and now I'm trying to figure out how I can it implement and how it could work.
Use heroku with puma. That's the easiest to setup.
http://www.justinweiss.com/articles/a-web-server-vs-an-app-server/
https://www.nateberkopec.com/2015/07/29/scaling-ruby-apps-to-1000-rpm.html
https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server
I am new to ruby on rails deployment. I have created my first simple ruby on rails application, but I am struggling to properly get it onto my server.
In my research, I learned about the various ways to deploy a ror app to my own server, and it seems that using capistrano would be the way to do it. However, it is not clear to me how to use capistrano to launch my app.
What are the steps that I need to take in order to launch my app? Do I need to use git, I prefer not to.. I don't want to use Heroku.
It just seems that deploying the application should be really easy and I am struggling with it. If I am using the non-optimal tools let me know.
thanks
Capistrano is primarily used to deploy apps, not to launch them. Capistrano is of course capable of launching Rails apps, but how to do that depends on how your app is set up.
You should do some research on using nginx (HTTP server) and Unicorn (Rack server) together with Capistrano. It might take some time setting everything up, but once in working condition, they’ll make deploying your app close to enjoyable.
Regarding actually deploying your app: Heroku is not required in order to use Git, but if you really don’t want to use any kind of versions system (though I highly recommend that you do), this blog post might help you on your way: http://www.maxkpage.com/blog/capistrano-rails-deploy-without-svn-or-git/
I am working on a website project that requires ruby 1.8.7 and using am currently rails 3.2. This is a research project and thus maybe a bit "unconventional".
I have a rails server, the manager, that spawns other rails servers which become peers in a P2P network.
I want to pass custom options to my spawned servers to configure them. I thought about doing something like this but it does not seem possible in rails. Does somebody have a suggestion of how to do something similar?
rails server --custom_option="CUSTOM_VALUE"
Will environment variables work?
CUSTOM_OPTION=CUSTOM_VALUE rails s
This should give you access to it:
`$CUSTOM_OPTION`
We have requirement to deploy rails application using single front-end server(Apache),two back-end server(Passenger) and two database-server.what will be the configuration? will it effect to change in rails application code base?
You can use Capistrano to deploy to multiple servers at the same time. If you want more specific configuration help please ask one or more specific questions.
I am using Rails 2.3.4 on windows. What are the steps to put my rails application on google app engine and allow only authorized users to view it?
Does it have to be GAE? If you just want a cloud solution you could maybe look at heroku (http://heroku.com/).
If it has to be GAE you'll need to make sure your app runs on jruby. You're also not going to be able to use active record.
Here's a good guide on how you can get a rails app on GAE:
http://olabini.com/blog/2009/04/jruby-on-rails-on-google-app-engine/
It does not have to be GAE. I just need to be able to put my rails app on a website where a limited set of users can view it. I have never deployed a rails app before so I am not sure which is the best way to get this done.