Skip to content

Instantly share code, notes, and snippets.

@luiscoms
Created July 19, 2016 12:48
Show Gist options
  • Save luiscoms/e1abf778fe5716aa3a22fad3271f01a3 to your computer and use it in GitHub Desktop.
Save luiscoms/e1abf778fe5716aa3a22fad3271f01a3 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
#!/usr/bin/env python
import logging
from pprint import pprint, pformat
import sys
logging.basicConfig(
stream=sys.stdout,
# level=logging.DEBUG,
format='[%(asctime)s] %(levelname)s:%(name)s:%(lineno)d - %(message)s'
)
logger = logging.getLogger('script')
logger.setLevel(logging.DEBUG)
logger.debug('start')
from classifications_api.jobs import SyncClassifications
sc = SyncClassifications()
sc.run()
#!/bin/bash
docker exec -it \
apis \
/var/www/apis-common/apis_common/migrations/migrate.sh \
/var/www/classifications-api/env/script.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment