想学习一下rails开源cms locomotive 无奈官网要翻wall,有没有同学安装过呀 求ubuntu下安装指导
2条回答 默认 最新
- cutdeer 2011-08-19 16:30关注
帮你转的
Requirements
RubyOf course :-)
We tested it with both Ruby 1.8.7 (2009-06-12 patchlevel 174) and Ruby 1.9.2.p0 which are two of Ruby versions Heroku supports.
Please note that performances are much better with Ruby 1.9.2 and the stability seems okay (no bugs found for now).
MongodbLocomotive CMS does not use a classic sql database such as mysql or postgresql but rather a nosql database named mongodb.
Mongodb is available on many OS. Check this link out for more information.
Note: We suggest you to take a version from 1.6.0.
ImageMagickUploaded images for asset collections are cropped, for example, and Locomotive uses ImageMagick for this purpose. Again, ImageMagick is available on a large set of OS.
Browsers (back-office)We haven't had time to test the IE versions. So for now, we ask you to use the Locomotive back-office with the following browsers: Safari, Firefox and Chrome.
From source installation
This way of installing Locomotive is recommended when you want to add new features, correct bugs or see how Locomotive works internally.
- Get source code from github.
git clone git://github.com/locomotivecms/engine.git locomotive
cd locomotive- Install gems.
bundle install
- Edit the Locomotive settings.
mate config/initializers/locomotive.rb
Note: If you run Locomotive in local and with the multi-sites mode on, do not forget to update your /etc/hosts file accordingly.
By default, Locomotive uses Amazon S3 in production. To change it, modify the carrierwave initialization file.
mate config/initializers/carrierwave.rb
- You also may want to change your mongodb connection settings.
mate config/mongoid.yml
- Run the application server.
bundle exec unicorn_rails
- Open your browser.
open http://localhost:8080/admin
Follow the instructions in the browser to create your first account and site.
(ONLY IN PRODUCTION) Push the assets used by the Locomotive back-office to Amazon S3 for better performances.(Jammit-S3).
export S3_KEY_ID=
export S3_SECRET_KEY=
export S3_BUCKET=jammit-s3 --force
If you do not want to push the assets in S3 and instead leave them in your application, remove the lines about S3 in the config/assets.yml file and run the following command:
jammit --force
Engine installation
This is probably the cleanest way to build your own comprehensive hosting CMS platform because the Locomotive core cannot be broken and all you need to do is add your own content.
- First, create a Rails project.
rails new my_platform -O -T -J
cd my_platform
rm public/index.html- You have to tell your Rails app that you want to include the Locomotive gem available on Gemcutter. Edit your application Gemfile and add these lines if missing.
gem 'rails', '3.0.9'
gem 'locomotive_cms', :git => 'git://github.com/locomotivecms/engine.git', :require => 'locomotive/engine'
gem 'unicorn', :group => 'development'- Install gems
bundle install
- Add the Locomotive config files and assets
bundle exec rails g locomotive:install
- Edit the locomotive settings
mate config/initializers/locomotive.rb
By default, Locomotive uses Amazon S3 in production. To change it, modify the carrierwave initialization file.
mate config/initializers/carrierwave.rb
- You also may want to change your mongodb connection settings
mate config/mongoid.yml
- Run the application server
bundle exec unicorn_rails
- Open your browser
open http://localhost:8080/admin
Follow the instructions in the browser to create your first account and site.
(ONLY IN PRODUCTION) Push the assets used by the Locomotive back-office to Amazon S3 for better performances (Jammit-S3).
export S3_KEY_ID=
export S3_SECRET_KEY=
export S3_BUCKET=jammit-s3 --force
If you do not want to push the assets in S3 but leave them in your application instead, remove the lines about S3 in the config/assets.yml file and run the following command
jammit --force
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 CSS实现渐隐虚线边框
- ¥15 thinkphp6配合social login单点登录问题
- ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
- ¥15 如何在scanpy上做差异基因和通路富集?
- ¥20 关于#硬件工程#的问题,请各位专家解答!
- ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
- ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
- ¥30 截图中的mathematics程序转换成matlab
- ¥15 动力学代码报错,维度不匹配
- ¥15 Power query添加列问题