2011-02-05 5 views
0

Apache、PHP、MySQL、SQLite、Ruby、およびRailsがインストールされた別のコンピュータにUbuntu Serverをセットアップしました。私がローカルにサーバー上にいて、新しいレールアプリケーションを作成しようとすると、 "rails new name_ofproject"を使用します。すべてうまく動作し、プロジェクトが作成されます。MacからUbuntu ServerへのSSHで同じコマンドを実行できない

exists 
     exists app/controllers 
     exists app/helpers 
     exists app/models 
     exists app/views/layouts 
     exists config/environments 
     exists config/initializers 
     exists config/locales 
     exists db 
     exists doc 
     exists lib 
     exists lib/tasks 
     exists log 
     exists public/images 
     exists public/javascripts 
     exists public/stylesheets 
     exists script/performance 
     exists test/fixtures 
     exists test/functional 
     exists test/integration 
     exists test/performance 
     exists test/unit 
     exists vendor 
     exists vendor/plugins 
     exists tmp/sessions 
     exists tmp/sockets 
     exists tmp/cache 
     exists tmp/pids 
    identical Rakefile 
    identical README 
    identical app/controllers/application_controller.rb 
    identical app/helpers/application_helper.rb 
    identical config/database.yml 
    identical config/routes.rb 
    identical config/locales/en.yml 
    identical db/seeds.rb 
    identical config/initializers/backtrace_silencers.rb 
    identical config/initializers/inflections.rb 
    identical config/initializers/mime_types.rb 
    identical config/initializers/new_rails_defaults.rb 
overwrite config/initializers/session_store.rb? (enter "h" for help) [Ynaqdh] 

私は自分の端末からサーバにsshをすると、私はファイルを表示、すべてのものにアクセスすることができますが、私は同じコマンドを使用して、新しいRailsアプリケーションを作成しようとすると、「新しいname_ofprojectレール」私はこれを受け取る

私はこのすべてにかなり新しいです。どんなアイデアや提案も非常に役に立ちます。私はこれが許可のものかもしれないと思う。理想的には、私は自分のサーバーにsshして、私が自分のサーバーにローカルにいた場合と同じタスクを実行できるようにしたいと考えています。

答えて

1

コマンドは以前はそのマシンで実行されていたようですが、作成したいファイルは既にそこにあるようです。

ローカルマシンでrails new name_ofprojectを同じプロジェクト名で2回連続して呼び出すと、再現を試みることができます。同じメッセージが表示される場合は、サーバーマシン上の古いファイルを削除してもう一度やり直してください。

+0

ええ、それはどのように表示されますが、ファイルが作成されたかどうかを確認するときには表示されません。私はParallelsのインストールを終了し、Linuxの内部でコマンドを実行しています...今はすべてがうまくいきます。フィードバックをお寄せいただきありがとうございます! – user604586

関連する問題