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
    https://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.

Advertisements