mirror of
https://github.com/kennethreitz-archive/wp-krtheme.git
synced 2026-06-05 23:40:16 +00:00
26 lines
630 B
Python
26 lines
630 B
Python
from fabric.api import *
|
|
|
|
env['host_string'] = 'root@zumhosting.com'
|
|
|
|
|
|
def push():
|
|
""" Pushes the application to the server """
|
|
|
|
print('Compressing application')
|
|
local('tar -czf /tmp/krtheme.tar . ')
|
|
|
|
print('Uploading application to server')
|
|
put('/tmp/krtheme.tar', '/tmp/')
|
|
|
|
print('Extraction application')
|
|
with cd('/var/www/vhosts/kennethreitz.com/httpdocs/blog/wp-content/themes/krtheme/'):
|
|
# run('rm -fr *')
|
|
run('tar xzf /tmp/krtheme.tar')
|
|
run('rm -fr /tmp/krtheme.tar')
|
|
|
|
# print('Restarting Apache.')
|
|
# run('/etc/init.d/apache2 stop')
|
|
# run('/etc/init.d/apache2 start')
|
|
|
|
print('Application Pushed.')
|