Last active
August 29, 2015 14:00
-
-
Save sepastian/11255377 to your computer and use it in GitHub Desktop.
LocomotiveCMS install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Locomotive CMS's wagon and engine | |
# Ruby version used: ruby-2.1.1 [ i686 ] RVM | |
# Depends: mongo, imagemagick | |
# Wagon | |
# See http://doc.locomotivecms.com/get-started/install-wagon#linux | |
gem install locomotivecms_wagon | |
# Engine | |
# See http://doc.locomotivecms.com/get-started/install-engine-locally#linux | |
gem install rails --version=3.2.16 | |
rails new loccms --skip-active-record --skip-test-unit --skip-javascript --skip-bundle | |
cd loccms | |
cat <<EOF >Gemfile | |
source 'https://rubygems.org' | |
gem 'rails', '3.2.17' | |
gem 'locomotive_cms', '~> 2.4.1', :require => 'locomotive/engine' | |
group :assets do | |
gem 'compass-rails', '~> 1.1.3' | |
gem 'sass-rails', '~> 3.2.3' | |
gem 'coffee-rails', '~> 3.2.1' | |
gem 'uglifier', '>= 1.0.3' | |
gem 'therubyracer', :platforms => :ruby | |
end | |
gem 'unicorn' | |
EOF | |
bundle install | |
bundle exec rails g locomotive:install | |
# At this point, edit config/mongoid.yml, if required. | |
# Enable multisite support. | |
# In config/initializers/locomotive.rb: | |
# | |
# 8 config.multi_sites do |multi_sites| | |
# 9 # each new website you add will have a default entry based on a subdomain | |
# 10 # and the multi_site_domain value (ex: website_1.locomotivehosting.com). | |
# 11 multi_sites.domain = 'local.i' # 'example.com' #'myhostingplatform.com' | |
# 12 | |
# 13 # define the reserved subdomains | |
# 14 # Ex: | |
# 15 multi_sites.reserved_subdomains = %w(www email blog webmail mail support help site sites) | |
# 16 end | |
# 17 # config.multi_sites = false | |
# In /etc/hosts add: | |
# | |
# 127.0.0.1 local.i | |
# 127.0.0.1 admin.local.i | |
# 127.0.0.1 unapublications.local.i | |
bundle exec unicorn_rails | |
# Point your browser to http://localhost:8080 to create your first site. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment