安装

在Linux(基于Debian)上安装locomotivecms

机车以下说明仅适用于64位基于Debian的Linux发行版,例如Ubuntu,Mint等。 在Rails应用程序上创建新的Ruby:

rails new locomotiveapp --skip-bundle --skip-active-record
cd locomotiveapp

确保您将删除robots.txt文件从public/ public/否则将来的任何网站的robots.txt设置都不会被拾取。添加杂种并在您的宝石中设计宝石。

gem 'devise', '~> 4.7.1'
gem 'mongoid', '~> 6.4.0'

安装它们并运行其设置任务

bundle install
bundle exec rails generate mongoid:config
bundle exec rails generate devise:install

通过添加locomotivecms Gem来更新Rails应用程序的GEMFILE。

gem 'locomotivecms', '~> 4.0.1'

运行机车安装生成器

bundle update
bundle exec rails generate locomotive:install

该安装将PUMA GEM添加到Rails应用程序的Gemfile中。需要额外的捆绑安装:

bundle install

最后,运行Rails服务器

rails server

就是这样!现在,在http:// localhost:3000/机车上打开浏览器。您应该在页面中看到机车标志。单击“没有帐户?”链接在底面页面,填写注册表格,以创建您的第一个帐户。现在,您可以通过安装货车并将网站部署到引擎来推动站点模板。 恭喜!您已经成功安装了机车CMS平台。

 简体中文