Installing Locomotive CMS on Windows 7

LocomotiveCMS is an open source CMS based on Ruby on Rails.

  1. Install Ruby on Rails using RailsInstaller
    http://rubyforge.org/frs/download.php/76862/railsinstaller-2.2.1.exe
  2. Install MongoDB
    http://downloads.mongodb.org/win32/mongodb-win32-i386-2.4.3.zip
  3. Install ImageMagick
    http://shoobm.wordpress.com/2013/01/03/installing-rmagick-gem-on-windows-7/
  4. Create a new app
    rails new myapp --skip-active-record --skip-test-unit --skip-javascript --skip-bundle
    cd myapp
  5. Include the LocomotiveCMS engine gem
    Edit your application Gemfile and add these lines if missing.
    gem 'locomotive_cms', '~> 2.0.0.rc12', :require => 'locomotive/engine'
    gem 'compass-rails', '~> 1.0.2', :group => 'assets'
    gem 'sass-rails', '~> 3.2.4', :group => 'assets'
    gem 'coffee-rails', '~> 3.2.2', :group => 'assets'
    gem 'uglifier', '~> 1.2.4', :group => 'assets'
  6. Install the gems
    bundle install
  7. Edit config/intializers/dragonfly.rb
    before:
    convert = which convert.strip.presence || "/usr/local/bin/convert"
    after:
    #convert = which convert.strip.presence || "/usr/local/bin/convert"
    convert = "C:\ImageMagick"
  8. The following command will insert the engine routes to the main application
    bundle exec rails g locomotive:install
  9. Edit the engine settings if needed.
    config/initializers/locomotive.rb
    config/mongoid.yml
  10. Start MongoDB server
    mongod
  11. Run the application server
    rails s
  12. Open your browser
    open http://localhost:3000/locomotive

    Follow the instructions in order to create your first administrator account and your first website.

Note that we are using WEBrick server and not Unicorn, as it is not supported on Windows.

About these ads

4 thoughts on “Installing Locomotive CMS on Windows 7

  1. Hi! Thanks for this guide, a lot of people are asking about Windows setup guide. Your post will help a lot of people I think. I’m adding a link in the new documentation site.
    If you’re interested in contributing to the documentation, I’m looking for people who can help us write quality guides.
    By the way have you tried Wagon, the new LocomotiveCMS development tool which replaces LocomotiveEditor? We would be interested by an installation recipe for Wagon ;)
    Thks a lot!

    Reply
  2. Pingback: Locomotive, a great open source CMS for Rails | HolaRails

  3. Pingback: Beginner’s Tutorials for various Content Management Systems | 1 question 1 answer

  4. Pingback: Chubako – Beginner’s Tutorials for various Content Management Systems

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s