Permalink
Browse files

Fixed some bugs

  • Loading branch information...
1 parent c5fc3ea commit 34098e1a414201cc131a3dd8b279ba46bd007a9f @kogakure committed Oct 17, 2009
Showing with 6 additions and 6 deletions.
  1. +6 −6 kogakure/fabfile.py
View
@@ -18,24 +18,24 @@
def deploy():
"Push local changes to server, pull changes on server, restart server"
local('git push;')
- run('cd $(project_path)/; git pull; delpyc' % env, pty=True)
+ run('cd %(project_path)s/; git pull; delpyc' % env, pty=True)
restart_server()
def stop_server():
"Stop Apache"
- run('$(server_path)/stop' % env, pty=True)
+ run('%(server_path)s/stop' % env, pty=True)
def start_server():
"Start apache"
- run('$(server_path)/start' % env, pty=True)
+ run('%(server_path)s/start' % env, pty=True)
def restart_server():
"Restart Apache"
- run('$(server_path)/stop' % env, pty=True)
- run('$(server_path)/start' % env, pty=True)
+ run('%(server_path)s/stop' % env, pty=True)
+ run('%(server_path)s/start' % env, pty=True)
def restart_memcached():
"Restart Memcached, restart server"
- run('kill `pgrep -u $LOGNAME memcached`' % env, pty=True)
+ run('kill `pgrep -u $LOGNAME memcached`')
run('/usr/local/bin/memcached -d -l $(memcached_ip) -m $(memcached_size) -p $(memcached_port)' % env, pty=True)
restart_server()

0 comments on commit 34098e1

Please sign in to comment.