# end
#end
-# Custom tasks for starting and restarting Mongrel cluster
+ ## Custom tasks for starting and restarting Mongrel cluster
+#namespace :deploy do
+# desc "start the mongrel cluster"
+# task :start, :roles => :app do
+# sudo "/usr/bin/mongrel_cluster_ctl start"
+# end
+#
+# desc "stop the mongrel cluster"
+# task :stop, :roles => :app do
+# sudo "/usr/bin/mongrel_cluster_ctl stop"
+# end
+#
+# desc "restart the mongrel cluster"
+# task :restart, :roles => :app do
+# sudo "/usr/bin/mongrel_cluster_ctl restart"
+# end
+#end
+
namespace :deploy do
- desc "start the mongrel cluster"
task :start, :roles => :app do
- sudo "/usr/bin/mongrel_cluster_ctl start"
end
- desc "stop the mongrel cluster"
task :stop, :roles => :app do
- sudo "/usr/bin/mongrel_cluster_ctl stop"
end
- desc "restart the mongrel cluster"
+ desc "Restart Application"
task :restart, :roles => :app do
- sudo "/usr/bin/mongrel_cluster_ctl restart"
+ run "touch #{release_path}/tmp/restart.txt"
end
+
+# task :after_update_code, :roles => :app do
+# run "rm -rf #{release_path}/public/.htaccess"
+# end
end
--- /dev/null
+class AddFirstAdminUser < ActiveRecord::Migration
+ def self.up
+ User.delete_all
+ User.create(:name => 'Neil',
+ :password => 'neildepot',
+ :password_confirmation => 'neildepot')
+ end
+
+ def self.down
+ User.delete_all
+ end
+end
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20090311105014) do
+ActiveRecord::Schema.define(:version => 20090311202750) do
create_table "line_items", :force => true do |t|
t.integer "product_id", :null => false