Skip to content

Instantly share code, notes, and snippets.

@fadur
Created January 31, 2011 21:10
Show Gist options
  • Select an option

  • Save fadur/804822 to your computer and use it in GitHub Desktop.

Select an option

Save fadur/804822 to your computer and use it in GitHub Desktop.
writes in conf files
def enable_site():
"""this enable your site using httpd.conf"""
append('#enabling %(projectname)s\nInclude %(apache_path)s/%(projectname)s.conf\n' % env,'%(httpd)s' % env, use_sudo=True)
append('%(ip)s %(projectname)s.local' % env, '/etc/hosts', use_sudo=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment