remove unneeded file
modify capistrano setting
[from now] Sun Oct  6 22:24:26 JST 2013

diff --git a/Gemfile b/Gemfile
index 4c53f82..d3a0b67 100644
--- a/Gemfile
+++ b/Gemfile
@@ -7,9 +7,6 @@ gem "nicoquery"
 gem "activerecord"
 gem "activesupport", "~> 4.0.0"
 gem "pg"
-gem "capistrano"
-gem "capistrano_colors"
-gem "capistrano-ext"

 gem "rake"
 gem "rspec"
@@ -19,3 +16,5 @@ gem "guard-rspec"
 gem "webmock"
 gem "database_cleaner"
 gem "factory_girl"
+
+gem "mina"
diff --git a/config/deploy.rb b/config/deploy.rb
index 3c787f2..fa45fec 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -1,45 +1,37 @@
-require 'capistrano_colors'
-require 'capistrano_banner'
-require 'bundler/capistrano'
-
-set :application, "yukkuri-crawler"
-set :repository,  "git@github.com:hdemon/yukkuri-crawler.git"
-
-set :scm, :git
-
-set :deploy_via, :copy
-set :git_shallow_clone, 1
-
-set :user, 'username'
-
-
-task :local do
-  # set :deploy_to, "#{ENV['HOME']}/hoge"
-  set :user, ENV['USER']
-
-  host = '127.0.0.1'
-  role 'web', host
-  role 'app', host
-  role 'edb', host, :primary => true
-
-  # banner
-end
-
-task :staging do
-  host = ''
-  role :web, host
-  role :app, host
-  role :db,  host, :primary => true
-
-  # banner
+require 'mina/git'
+# require 'mina/bundler'
+# require 'mina/rbenv'
+
+set :domain, '127.0.0.1'
+set :port, 2222
+# set :domain, '192.241.178.77'
+set :user, 'yukkuri'
+# set :user, 'yukkuri'
+# 絶対パスが使えない？
+set :identity_file, '../../../.ssh/id_rsa.yukkuri'
+
+set :deploy_to, '/home/yukkuri/crawler'
+set :repository,  "https://github.com/hdemon/yukkuri-crawler.git"
+
+task :deploy do
+  deploy do
+    # Put things that prepare the empty release folder here.
+    # Commands queued here will be ran on a new release directory.
+    invoke :'git:clone'
+    # invoke :'bundle:install'
+
+    # # These are instructions to start the app after it's been prepared.
+    # to :launch do
+    #   queue 'touch tmp/restart.txt'
+    # end
+
+    # # This optional block defines how a broken release should be cleaned up.
+    # to :clean do
+    #   queue 'log "failed deployment"'
+    # end
+  end
 end

-task :production do
-  hosts = %w()
-
-  role :web, *hosts
-  role :app, *hosts
-  role :db, hosts.first, :primary => true
-
-  # banner
+task :cleanup do
+
 end
add Gemfile.lock