输入rails g migration migration_name,发现rails认为你没有在专案里面显示这样:

Usage:
  rails new APP_PATH [options]

Options:
  -r, [--ruby=PATH]              # Path to the Ruby binary of your choice
 .....
 一大推东西

输入rails server也是同样的,但location已经在目标专案里面了。google到的解答是这样的(没有生成bin或者是被.gigitignore掉了):

cd server;
bundle install;
rake db:migrate RAILS_ENV=development;

#Run this command to generate /bin

rake rails:update:bin

1