Created
July 19, 2016 12:48
-
-
Save luiscoms/e1abf778fe5716aa3a22fad3271f01a3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# -*- 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() |
This file contains hidden or 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
#!/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