Skip to content

Commit

Permalink
Merge pull request #14 from rockdog/change-make-deploy
Browse files Browse the repository at this point in the history
Change make deploy
  • Loading branch information
sjaensch authored Feb 16, 2017
2 parents 4996eb3 + 0ad9ae2 commit 4cc26c8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
15 changes: 10 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
.PHONY: all test clean run-dev deploy deploy_with_dispatch deploy_build
.PHONY: all test clean run-dev deploy deploy_build

all: test

run-dev: config.py lib
dev_appserver.py dispatch.yaml app.yaml worker.yaml

deploy: deploy_build
appcfg.py --no_cookies update app.yaml worker.yaml

deploy_with_dispatch: deploy_build
appcfg.py --no_cookies update app.yaml worker.yaml dispatch.yaml
# If you are running into permission issues and see a message like this:
# You do not have permission to modify this app (app_id=u'foobar').
# then try adding --no_cookies to the commands below
appcfg.py update app.yaml worker.yaml
appcfg.py update_dispatch .
appcfg.py update_queues .
appcfg.py update_indexes .
# If you are using cron.yaml uncomment the line below
# appcfg.py update_cron .

deploy_build: config.py clean lib test
@echo "\033[31mHave you bumped the app version? Hit ENTER to continue, CTRL-C to abort.\033[0m"
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,11 @@ version of worker.yaml. This version number is specific to the worker module and
is independent of the main app version.

When you bumped versions in the appropriate files you can deploy your changes by running
<code>make deploy</code>. If you have modified [dispatch.yaml](dispatch.yaml), you need to
use the <code>make deploy_with_dispatch</code> command instead.
<code>make deploy</code>.

Once your code has been uploaded to Google, you must activate the newly deployed version
in the [Developer Console](https://console.developers.google.com/). Then you're done!

If you've modified cron.yaml you have to run <code>appcfg.py update_cron <i>app-directory</i></code>
in order for your changes to take effect. For more information checkout [https://cloud.google.com/appengine/docs/python/config/cron](https://cloud.google.com/appengine/docs/python/config/cron).

## API

Yelp Love also ships with an API which will be available under [https://project_id.appspot.com/api](https://project_id.appspot.com/api).
Expand Down
File renamed without changes.

0 comments on commit 4cc26c8

Please sign in to comment.