def create_service_file():
service_file_config = {
'user': env.user,
'work_dir': PROJECT_FOLDER,
'env_bin_dir': VENV_BIN_DIRECTORY,
'uwsgi_path': os.path.join(VENV_BIN_DIRECTORY, 'uwsgi'),
'app_ini_path': INI_FILE_PATH
}
upload_template(
filename='deploy_configs/meetup-facebook-bot.service',
destination=os.path.join('/etc/systemd/system/', UWSGI_SERVICE_NAME),
context=service_file_config,
use_sudo=True
)
评论列表
文章目录