I am trying to run simple RoR application with Phusion Passenger. At the moment when go to localhost I see the error from subject. In fact I don’t have any pending migration: My platform is Linux (Debian 8 Jessie 64x). My database is MySQL (gem ‘mysql2’, ‘~> 0.3.18’). I am using Ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] and Rails 4.1.8.
Tag: ruby-on-rails
Passenger repository certificate verification failed
I want to install Passenger server on my virtual machine, so I do the following: But after I update I get this errors: I already installed it previously many times and had no problems. I have no idea what might go wrong. Answer Fixed that by reinstalling Ubuntu on clean VM. This issue might appeared because I copied my VM’s
installing rails with gem , error loading command : install undefined method ‘invoke_with_build_args`
I’m try to install rails on Debian. when run this command gem install rails I gave this error: even when I try this command: gem install I gave this error: I used this link to build ruby from sources ruby 2.1.2 build instruction what can I do to overcome this error? Answer For who compile from source, they must checked
bundle install not running from my post-update hook
I’ve setup a post-update hook for my project. I have a bare repository (/var/git/myproject) which I push to, and a live repository (/var/www/myproject) where my app is running. I also included bundle install and bundle exec rake db:migrate to install gems and update db. Below is my post-update hook When I push my changes though I get the following message
Rails: Uninstall specific version of a library using gem
For example I have the following four versions installed: capybara (2.2.1, 2.2.0.rc1, 2.1.0, 1.1.4) Please suggest how to uninstall the capybara version 1.1.4 Answer When you do gem uninstall capybara it should give you a menu asking which one you want to uninstall. Alternatively use the -v option. Note you may need to sudo these commands if you’re not using
Missing library while installing ruby-filemagic gem on Linux
I needed gem ruby-filemagic for some requirements in my project. While running bundle install its giving me this error Please help me with this problem. Answer sudo apt-get install libmagic-dev did it for me
Installing Passenger when Nginx is already installed; Possible?
Rather a simple question I believe, is it possible to install passenger when nginx is already installed on your webserver? If the answer is Yes, I already performed these actions: At this very moment I already have nginx installed (for my PHP applications) and next I did a checkout of the passenger’s git repository: and then add this snippet to
Rails sends 0 byte files using send_file
I can’t get send_file(Model.attachment.path) to work. It doesn’t fail, instead, it sends a 0 byte size file to the client, the file names are correct though. This problem started happening after I did a big migration from Rails 2.3.8 to 3. There were a lot of other things that took place in this migration and I will try my best