I have just tried to deploy my Rails 3 application which uses ActiveAdmin and I’ve gotten the following error:
File to import not found or unreadable: active_admin/mixins
I have just tried to deploy my Rails 3 application which uses ActiveAdmin and I’ve gotten the following error:
File to import not found or unreadable: active_admin/mixins
I updated to Rails 3 and tried to deploy the application using passenger in combination with Apache2. I’ve got the following error:
no such file to load — dispatcher
The thing was, that Passenger treats the Rails 3 application as an Rack application because of the config.ru file. To get it run again, you need to change the passenger variables RailsBaseURI and RailsEnv to RackbaseURI and RackEnv respectively in your virtual host configuration of Apache2. Example:
RackBaseURI / RackEnv production
see also Phusion Passenger User Guide.
To run Rake tasks with Ruby on Rails in different environments, you just provide the necessary variable when starting the task:
$ RAILS_ENV=staging rake db:migrate
In this case we are starting the migration tasks in an environment called staging. You can of course also provide the standard environments like development, test or production.
I got the following error when i wanted to install passenger via
gem install passenger
on my ubuntu machine:
no such file to load — mkmf
To fix this i had to install the ruby modules via
sudo apt-get install ruby1.8-dev
Robert Dempsey has written a nice article about ‘Using Amazon S3, EC2, SQS, Lucene, and Ruby for Web Spidering‘, which is very interesting because it describes how to interact with Apache Lucene using Ruby.