Permalink
Browse files

Added cap files & updated index

  • Loading branch information...
1 parent ead2a8b commit 2695d9e0936587c1c63751ee2e78ab51558b79f5 Steve Flinter committed Jun 24, 2009
Showing with 43 additions and 0 deletions.
  1. +3 −0 Capfile
  2. +30 −0 config/deploy.rb
  3. +10 −0 views/index.haml
View
@@ -0,0 +1,3 @@
+load 'deploy' if respond_to?(:namespace) # cap2 differentiator
+Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
+load 'config/deploy'
View
@@ -0,0 +1,30 @@
+set :repo_user, "sflinter"
+set :user, 'flintero'
+set :domain, 'semantictweet.com'
+set :host, "aether.site5.com"
+set :application, "semantictweet"
+set :repository, "git://github.com/#{repo_user}/#{application}.git"
+set :deploy_to, "/home/#{user}/#{application}"
+#default_run_options[:pty] = true
+
+# misc options
+set :scm, 'git'
+set :deploy_via, :remote_cache
+set :branch, 'master'
+set :scm_verbose, true
+set :use_sudo, false
+set :group_writable, false
+
+set :keep_releases, 10
+
+role :app, host
+role :web, host
+role :db, host, :primary => true
+
+namespace :deploy do
+ desc "Restart the web server"
+ task :restart, :roles => :app do
+ run "cd /home/#{user}/public_html ; rm #{domain} ; ln -s /home/#{user}/#{application}/current/public ./#{domain}"
+ run "cd /home/#{user}/#{application}/current/tmp ; touch restart.txt"
+ end
+end
View
@@ -5,7 +5,17 @@
= succeed ',' do
%a{:href => "http://www.foaf-project.org/"} FOAF document
enter your twitter screen name:
+
%form{:action => '/screen_name', :method => 'get'}
%label http://twitter.com/
%input{:type => "text", :id => "screen_name", :name => "screen_name" }
%input{:type => "submit", :value => "Go" }
+
+%p Status: if there was a letter before alpha, it would be that.
+
+%p
+ All feedback gratefully received. Check out
+ %a{:href => "http://blog.semantictweet.com"}the blog
+ for announcements and contact details, or follow
+ = succeed '.' do
+ %a{:href => "http://twitter.com/semantictweet"} @semantictweet

0 comments on commit 2695d9e

Please sign in to comment.