-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change ranking to gross revenue then shortest name so we can find old…
… films with short names like jaws
- Loading branch information
1 parent
15dab74
commit 0fa9de2
Showing
7 changed files
with
16 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,9 @@ | |
import datetime | ||
import re | ||
|
||
APPENGINE_DEV_APPSERVER = '/usr/local/bin/dev_appserver.py' | ||
APPENGINE_PATH = '/usr/local/google_appengine/' | ||
APPENGINE_APP_CFG = '/usr/local/bin/appcfg.py' | ||
APPENGINE_PATH = os.path.abspath(os.environ['APPENGINE_SRC']) | ||
APPENGINE_DEV_APPSERVER = os.path.join(APPENGINE_PATH, 'dev_appserver.py') | ||
APPENGINE_APP_CFG = os.path.join(APPENGINE_PATH, 'appcfg.py') | ||
PYTHON = '/usr/bin/python' | ||
|
||
env.gae_email = '[email protected]' | ||
|
@@ -35,7 +35,7 @@ def fix_appengine_path(): | |
os.path.join(APPENGINE_PATH, 'lib', 'webob'), | ||
os.path.join(APPENGINE_PATH, 'lib', 'yaml', 'lib'), | ||
] | ||
|
||
sys.path = EXTRA_PATHS + sys.path | ||
|
||
fix_appengine_path() | ||
|
@@ -66,7 +66,7 @@ def last_tag(): | |
def deploy(tag=None, prod=False): | ||
if not is_working_directory_clean(): | ||
abort('Working directory should be clean before deploying.') | ||
|
||
prepare_deploy(tag=tag, prod=prod) | ||
local('%s %s -A %s -V %s --email=%s update %s' % (PYTHON, APPENGINE_APP_CFG, | ||
env.app.application, env.app.version, env.gae_email, env.gae_src)) | ||
|
@@ -113,7 +113,7 @@ def prepare_deploy(tag=None, prod=False): | |
|
||
if not prod: | ||
env.app.version += '-test' | ||
|
||
# Check out a clean copy. | ||
deploy_path = local('mktemp -d -t %s' % env.app.application, capture=True) | ||
local('git clone . %s' % deploy_path) | ||
|
@@ -123,7 +123,7 @@ def prepare_deploy(tag=None, prod=False): | |
local('find . -name ".git*" | xargs rm -rf') | ||
print yellow('App: %s' % env.app.application) | ||
print yellow('Ver: %s' % env.app.version) | ||
|
||
env.deploy_path = deploy_path | ||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,4 +114,3 @@ def get(self): | |
response = '%s(%s)' % (callback, response) | ||
|
||
return webapp2.Response(response) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cron: | ||
- description: daily get a year of films | ||
- description: hourly get a year of films | ||
url: /tasks/getyear | ||
schedule: every 60 minutes | ||
schedule: every 60 minutes |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
|
||
__author__ = '[email protected] (Adam McGrath)' | ||
|
||
API_KEY = 'YOUR-API-KEY' | ||
API_KEY = 'YOUR-API-KEY' |
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