Add Django tasks, update setting_local and apache site template render, fix os vs. env error
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import os
|
||||
|
||||
from fabric.api import run, sudo, cd, env, task
|
||||
from fabric.contrib.files import upload_template
|
||||
|
||||
|
||||
def install_site():
|
||||
"""
|
||||
Install Mayan EDMS's site file in Apache configuration
|
||||
"""
|
||||
|
||||
#TODO: mod site with paths
|
||||
sudo('cp %s /etc/apache2/sites-available/' % os.path.join(env.repository_path, 'contrib/apache/mayan'))
|
||||
# TODO: configurable site name
|
||||
upload_template(filename=os.path.join('fabfile', 'templates', 'apache_site'), destination='/etc/apache2/sites-available/mayan', context=env, use_sudo=True)
|
||||
sudo('a2ensite mayan')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user