This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fabric.api import * | |
PACKAGE_LIST = ['git', 'supervisor', 'postgresql', 'python-pip', 'nginx'] #add all required packages in this list | |
DB_USER = "db_user" #define your user here | |
DB_PASS = "db_pass" #define your password here | |
DB_NAME = "db_name" #define your database name here | |
def install_package(): | |
sudo('apt-get update') | |
sudo('apt-get install %s' % (' '.join(PACKAGE_LIST))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[flake8] | |
max-line-length = 88 | |
max-complexity = 12 | |
select = C,E,F,W,B,B950 | |
ignore = E203, E501, W503 |