- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试安装 LocomotiveCMS 并尝试遵循此指南:http://doc.locomotivecms.com/guides/get-started/install-engine .我开始进入必须输入的部分:
bundle exec rails g locomotive:install
然后只输出 rails 使用命令:
MacBook-Pro:myapp chris$ bundle exec rails g locomotive:install
Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
# Default: /Users/chris/.rvm/rubies/ruby-2.0.0-p195/bin/ruby
-b, [--builder=BUILDER] # Path to a application builder (can be a filesystem path or URL)
-m, [--template=TEMPLATE] # Path to an application template (can be a filesystem path or URL)
[--skip-gemfile] # Don't create a Gemfile
[--skip-bundle] # Don't run bundle install
-G, [--skip-git] # Skip Git ignores and keeps
-O, [--skip-active-record] # Skip Active Record files
-S, [--skip-sprockets] # Skip Sprockets files
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
# Default: sqlite3
-j, [--javascript=JAVASCRIPT] # Preconfigure for selected JavaScript library
# Default: jquery
-J, [--skip-javascript] # Skip JavaScript files
[--dev] # Setup the application with Gemfile pointing to your Rails checkout
[--edge] # Setup the application with Gemfile pointing to Rails repository
-T, [--skip-test-unit] # Skip Test::Unit files
....
我不确定我做错了什么。我按照这封信的指南...
任何帮助将不胜感激。谢谢!
编辑:“捆绑安装”似乎运行良好。
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
我的 rails 版本是:
Rails 3.2.13
我的 ruby 版本是:
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.3.0]
这是我当前的 Gemfile(尽管我确实尝试对此进行了一些更改以进行测试):
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '3.2.13'
gem 'locomotive_cms', '~> 2.0.1', :require => 'locomotive/engine'
gem 'unicorn', :group => 'development'
gem 'compass-rails', '~> 1.0.3', :group => 'assets'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 3.2.6', :group => 'assets'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 2.1.1', :group => 'assets'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 3.2.2', :group => 'assets'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.0.1', :group => 'assets'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
# Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
最佳答案
向上移动一个目录(比你的 rails app 目录高一层)并运行:
rails -v
您可能会看到 3.2.13 以外的版本。如果这样做,请尝试使用此创建项目:
rails _3.2.13_ new app_name --skip-active-record --skip-test-unit --skip-javascript --skip-bundle
关于ruby-on-rails - 无法在 bundle exec 安装 Locomotive CMS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16911152/
我正在尝试在我的 locomotive.js 应用程序上编写测试,实际上是从互联网上的一些示例中复制/粘贴代码。即便如此,每当我运行测试时,我都会收到一条错误消息 TypeError: string
我有一个 locomotive.js MVC 项目,它在 http 上监听。我想监听 https ,并将所有 http 重定向到 https。 我找不到node.js的createServer,我找到
我正在使用 locomotivejs 构建一个 api,我想知道是否有办法从另一个 Controller 中访问 Controller 方法? 最佳答案 唯一的可能是请求另一个 Controller
在Locomotivejs中如何设置coffeescript。 这看起来很简单,但我想不出来。 我在“all.js”中设置了选项,但运气不好。 我想我已经快到了或还差得很远才能把它做好。 :( thi
我正在使用 locomotive.js 构建一个应用程序,并且希望使用 Mocha 测试框架构建我的测试套件。一般来说,我对 TDD/BDD 还很陌生,所以请考虑到这一点。我很好奇是否有人能给我指出一
我正在查看 Node.js Web 框架 Locomotive 。因为它是建立在 Express 之上的,我想 Connect 中间件应该很容易访问,但我不知道如何访问。 我在 config/envi
我正在尝试安装 LocomotiveCMS 并尝试遵循此指南:http://doc.locomotivecms.com/guides/get-started/install-engine .我开始进入
我有以下液体标记: {{ 'image.jpg' | theme_image_tag }} 它的渲染效果如下: 如何向其中添加类或任何选项?我希望它呈现如下: 我使用 Locomotive CMS
我正在 cloud9 终端上运行用 node/locomotive.js 编写的 Web 服务器。当我尝试从客户端程序(例如curl)访问它时,它被重定向到 https://c9.io/signin.
我正在构建一个将与 angularjs 前端一起使用的 rest api 服务器。我正在尝试实现一些在每个请求上运行的中间件。对于每个请求,如果存在,我想检查 api token ,继续检查是否有效,
我是一名优秀的程序员,十分优秀!