Web application deploy script updated to JV can deploy too.
authorJan Vrany <jan.vrany@fit.cvut.cz>
Thu, 04 Jul 2013 11:03:58 +0100
changeset 118 71925d2ae258
parent 117 644cb1633fb3
child 119 620e7dfcba28
child 129 489b08c59ecc
Web application deploy script updated to JV can deploy too.
web/config/deploy.rb
--- a/web/config/deploy.rb	Thu Jul 04 11:03:23 2013 +0100
+++ b/web/config/deploy.rb	Thu Jul 04 11:03:58 2013 +0100
@@ -5,14 +5,19 @@
 set :application, "calipel"
 
 set :scm, :mercurial 
-set :repository,  "ssh://hg@bitbucket.org/janvrany/jv-calipel"
+#set :repository,  "ssh://hg@bitbucket.org/janvrany/jv-calipel"
+set :repository,  "https://bitbucket.org/janvrany/jv-calipel"
 
 set :deploy_via, :remote_cache
 set :deploy_to, "/home/hlopkmar/calipel"
 set :deploy_subdir, "web"
 
 server "swing.fit.cvut.cz", :app, :web, :db, primary: true
-set :user, "hlopkmar"
+if ENV['USER'] == 'jv'
+  set :user, "vranyj1"  
+else
+  set :user, "hlopkmar"
+end  
 set :use_sudo, false
 
 set :default_environment, {