I want to deploy a RoR application that uses a gem capybara-webkit. Is there any free RoR hosting site capable of using that gem?
Heroku is not capable of using it: Is it possible to run capybara-webkit (i.e. forked webkit_server) on Heroku Cedar?
OpenShift is also not capable: https://www.openshift.com/forums/express/error-in-installing-capybara-webkit-gem-while-trying-to-deploy-juvia-rails-app
Is there any other alternative?
I have tired capybara-webkit with digital ocean it works well for me.
for more information http://blog.55minutes.com/2013/09/running-capybara-webkit-specs-with-jenkins-ci/
If you just need to deploy the app on Heroku (and not run tests with capybara-webkit on Heroku), exclude caybara-webkit from the installed dependencies on your Heroku app:
heroku config:add BUNDLE_WITHOUT="development:performance:test"
Related
Has any one used Capistrano 3.0.0 ?
I'm new to rails and web development in general, and I've never used Capistrano before, and I need to deploy my app on Heroku with Capistrano in order to user sidekiq and redis-server.
Should I use an older version of Capistrano, where I could find more resource to help get started, or is this considered a bad thing ?
Any suggestions or tips would be very much appreciated.
Capistrano and Heroku are not compatible technology.
Heroku provides a git source control remote server. When you want to deploy code onto your Heroku app, you use git to push a copy of the code. This triggers a Heroku deployment through their process.
Capistrano is an SSH based system deployment framework. It allows you to connect via SSH to each server in your environment and issue commands with a large library of built-in functionality. Heroku does not allow SSH access to configure systems.
Do you have deploys/configuration working on Heroku at all? If not, you should start there with the basic Heroku Rails setup documents.
If you do have your web app running, but need Redis and Sidekiq, you will need to:
Provision a Redis database provider, like OpenRedis via a Heroku Addon: http://addons.heroku.com/
Setup Sidekiq in your Rails application (See Sidekiq docs: https://github.com/mperham/sidekiq)
Add a Sidekiq worker process in your Heroku Procfile within your app
Your app will then have a number of web processes from the Procfile running your Rails app front-end and a number of back-end asynchronous workers running Sidekiq.
I have sunspot_rails in my gemfile for my rails app. When I deploy, I use heroku. I find that when I do, I get charged for a heroku add-on that enables this to work. When I remove the add-on, search doesn't work anymore.
Is it possible to use this gem without paying for the add-on or am I doing something incorrectly?
The reason why you need a special Heroku 'add-on' for using sunspot_rails as opposed to many other gems, is because sunspot relies on Solr, which is a actually a separate Java application which needs to be run on your server. Heroku is charging you for running that distinct Solr application. If you weren't on Heroku, you could set up your own Solr instance on your server.
There are many guide help us to deploy ROR on windows for development.
How can I to deploy a ROR evironment for production.
The InstantRails project doesn't update anymore,and I don't know is it can be use for regular production?
Try the installer found here for Ruby- http://rubyinstaller.org/
Just don't install the dev kit add on. Then install the gem manager (same page) and do gem install rails. That should get you stated.
-Will
How do I launch a Rails 3 app on Heroku.
I am using PHPmyadmin.
I would start here
yep, you need to read the manual. Heroku is entirely managed system, you can only deploy via a git push. By default it uses Postgresql as it's DB - you can use mySQL but you'd have to pay for an Amazon mySQL server
Perhaps you should read through the Ruby on Rails tutorial. It guides you through the process of developing an app in RoR and pushing it to Heroku. Good luck.
This part, especially, has information on deployment to heroku:
Heroku Deployment
says if i develop a Ruby on Rails application using Rails 2.3.2, will that usually be compatible with Passenger on my hosting company?
If i ssh to my hosting company and type rails -v, i get 2.2.2... so looks like they might be using Rails 2.2.2.
So if i develop a Rails app on my Macbook and ftp all files over there, will the Passenger there usually work well with the generated code with the current version of Rails?
Freeze rails into vendor/rails using the built in rake task. That way your app will ue the version of rails you want it to no matter where you deploy it.
rake rails:freeze:gems
And the easiest way to do a specific version I know of.
rake rails:freeze:edge RELEASE=2.3.2.1
Now your version of rails will go with you where you send your app.
You can unpack other gem dependencies into vendor/gems for any gem you are using and want to be sure that it is available where ever you deploy the application.
rake gems:unpack
And to ensure their dependencies go to:
rake gems:unpack:dependencies
I would also suggest that you verify that they are running the latest version of passenger.
I would verify the version of Passenger they have installed (or confirm they have it installed at all). I would also suggest you freeze your version of Rails.
Just second something for railsninja's answer .
First say, it won't work straightaway.
Is that host a vps to you or have sudo access somehow?
If yes, I suggest you to do rake gems:install instead of gems:unpack, because some of gems are os dependent e.g (Rcov, RedCloth...etc.)
I will ask the hosting company of their passenger's configuration, the important question will be if they use RailsSpawnMethod: smart or smart-lv2(default).If they use the smart method, then it is a better idea to freeze your gems and rails otherwise will have the compatible issue as you can find reference from passenger user manual about the RailsSpawnMethod.
It will be nearly 100% compatible if you freeze your gems(all the gems need to be declared correctly in the environment.rb with config.gem, e.g(config.gem 'will_paginate',:source=>"http://gems.github.com")) and RAILS!!!!!