菜鸟遇到以下两个问题,寻求帮助 情况是这样的,我买了阿里云的服务器,按照http://ruby-china.org/wiki/install-rails-on-ubuntu-12-04-server 进行了配置 然后将本地的 example 文件夹复制到了服务器上的/home/xiaoniuniu/www 中。编译 bundle install 和 rake db:create,rake db:migrate 和 rake db:seed 都没有报错。 启动 rails s 之后发现原本数据库的内容都没有上传上去,不知道应该如何操作。
另外,我在网站中使用了 redis,在服务器端应该需要改哪些配置吗,现在的 redis-server 没有办法起来。 我贴一下我个 Gemfile 信息:
source 'http://ruby.taobao.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
#In order to pass the bundle install
gem 'minitest','4.7.5'
gem 'atomic','1.1.3'
gem 'i18n','0.6.5'
gem 'sprockets','2.10.0'
gem 'hike','1.2.3'
gem 'builder','3.1.4'
gem 'activemodel','4.0.0'
gem 'rake','10.1.0'
#manage uploader
gem 'mini_magick'
gem 'carrierwave'
gem 'protected_attributes','1.0.3'
#manage dashboard
gem 'activeadmin', github: 'gregbell/active_admin', branch: 'rails4'
gem 'ransack', '1.0.0'
gem 'inherited_resources', github: 'josevalim/inherited_resources'
gem 'formtastic', github: 'justinfrench/formtastic'
gem 'active_admin_editor'
#social share
gem 'social-share-button'
#Bootstrap
gem 'twitter-bootstrap-rails'
gem 'less-rails'
gem 'therubyracer'
#kindeditor
gem 'rails_kindeditor', '~> 0.4.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
#Manage User
gem 'devise'
gem 'acts_as_commentable'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
#Likeable
gem 'activerecord-reputation-system'
gem 'redis'
gem 'redis-server'
gem 'likeable'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', git: 'git://github.com/rails/coffee-rails.git'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails','3.0.4'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
gem 'yaml_db'
gem 'mysql'
# 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]
谢谢大侠指点~~~