def bootstrap(branch='master'):
env.sudo_password = getpass('Initial value for env.sudo_password: ')
env.domain_name = prompt('Enter your domain name:', default='meetup_facebook_bot')
create_permanent_folder()
create_log_folder()
install_postgres()
database_url = setup_postgres(username=env.user, database_name=env.user)
renew_ini_file(database_url)
install_python()
fetch_sources_from_repo(branch, PROJECT_FOLDER)
reinstall_venv()
install_modules()
install_nginx()
configure_letsencrypt_if_necessary()
add_nginx_reload_crontab_job()
configure_nginx_if_necessary()
setup_ufw()
start_systemctl_service(UWSGI_SERVICE_NAME)
start_systemctl_service('nginx')
run_setup_scripts()
status()
评论列表
文章目录