I am getting the following error when trying to start my Rails application in production for the first time:
/var/www/railsapp/config/initializers/session_store.rb:3: syntax error, unexpected ':', expecting $end ...sion_store :cookie_store, key: '_intranet_session' ^
I have read that this could be an issue with the current ruby version, so I installed RVM and updated the running version.
**roo
Can anyone shed some light on what exactly this error refers to?
I'm having trouble deploying new versions of the site.
I, INFO -- : reloading config_file=[snip]/current/config/unicorn.rb
I, INFO -- : Refreshing Gem list
E, ERROR -- : error reloading config_file=[snip]/current/config/unicorn.rb: Application has been already initialized.
I created a new rails application in linux environment.
So I've installed multi-user rvm and Ruby 1.9.3. On top of that I've got rails, passenger and apache2 on my Ubuntu 12.10 machine. The apache2 web server works fine, but passenger won't serve my apps, and running passenger-status returns ERROR: Phusion Passenger doesn't seem to be running..
I've been using Monit to monitor my Thin server and everything was working until I upgraded my Rails version from 2.3.4 to 2.3.14. Now when I try and start Thin using monit it gives me an unfound gem error:
Missing the Rails 2.3.14 gem.
Previously, I ran apt-get install rails, but that only installed rails 2, so I subsequently ran gem install rails. The output of that command clearly references rails 3, not 2:
Fetching: railties-3.2.9.gem (100%)
Fetching: bundler-1.2.3.gem (100%)
Fetching: rails-3.2.9.gem (100%)
# ...
...but rails -v outputs Rails 2.3.14. Gah! I can't run my rails local server!
(Debian squeeze)
rvm version: 1.10.0
I have just installed ruby 1.9.2-p290 using "rvm install 1.9.2" and made it default. However, I am getting this error when trying to install rails using rubygems.
I'm trying to set the $PATH to pick up the latest version of pg_dump as I'm currently getting a mismatch error while doing a migrate in my Rails app (I recently changed the schema type to SQL).
I have added a new file in /etc/profile.d called pg_dump.sh, and inside that put:
PG_DUMP=/usr/pgsql-9.1
export PG_DUMP
PATH=$PATH:$PG_DUMP/bin
export PATH
On looking at echo $PATH, I get:
/usr/local/r
I want to host multiple Rails apps on a multiple server using sub-directories.
And have encountered some relative path problems.
I have made a symbolic link to the app's public directory and placed it in the /var/www/html directory,
var/www/html/
/test_app (symbolic link to the public folder of test_app)
and set apache as so
LoadModule passenger_module /usr/local/lib/ruby/gem