Skip to content
Advertisement

Tag: ruby-on-rails

Rails task not running unless rails runner has been executed in the command prompt since the linux server machine’s bootup

I’m trying to execute this task to update a large amount of data from a controller so that when an administrator user accesses this method it will run the said task. I’ve confirmed that there aren’t any issues with the task itself, but I’m not so sure about the way it’s being called. The problem I’m running into is that

rails s command issue

The rails s command is showing this issue bellow; I have no idea what it is? this project use to run fine; I haven’t change much either. My env: The weird thing is that I execute the same command in another project and it run just fine. I am missing something? If I try the command along it work but

Error: mime-types-data requires Ruby version >= 2.0

I recently install clean ubuntu14.04 virtual machine in vware fusion and updated it. I am trying to install the mime-tyes-data by sudo gem install mime-types-data -v 3.2015.1120 The error shows ERROR: Error installing mime-types-data: mime-types-data requires Ruby version >= 2.0. Before that I already update ruby version by sudo apt-get install ruby2.0 sudo ln -sf /usr/bin/ruby2.0 /usr/bin/ruby It seems my

Where is mod_passenger.so, installed with yum?

I have a combo of Centos 6-Apache-Passenger-Ruby. Install was made following instructions here. I also have whm, which means changes to httpd.conf must be made by click. While trying to include /etc/httpd/conf.d/*.conf, tells me there is an error because: Cannot load /usr/local/apache/modules/mod_passenger.so into server. Problem is this line at /etc/httpd/conf.d/passenger.conf: Last part of the sentence should point to actual mod_passenger.so,

Permission denied in Rails app (Redmine) running with Thin

I’m trying to run Redmine with Thin and nginx as reverse proxy. My /etc/thin2.1/redmine.yml: When I access the site with my web browser I get a 502 Bad Gateway. This is the content of /var/log/thin/redmine.0.log: I don’t understand what causes this error. The .pid files in /var/run/thin/ are owned by root. I tried to give ownership to either redmine and

Advertisement