Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1579)

Side by Side Diff: third_party/gsutil/cloudreader/README.google

Issue 10199002: Upgrade gsutil to 3.4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/gsutil/cloudauth/oauth2_plugin.py ('k') | third_party/gsutil/cloudreader/app.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 This directory contains an example app ("cloudreader") that runs in the 1 This directory contains an example app ("cloudreader") that runs in the
2 Python version of the Google App Engine, accessing Google storage via the 2 Python version of the Google App Engine, accessing Google storage via the
3 Google-modified version of the boto open source Python library. 3 Google-modified version of the boto open source Python library.
4 4
5 To install and try the cloudreader app, take the following steps: 5 To install and try the cloudreader app, take the following steps:
6 6
7 1. The current code assumes you are already familiar with Google 7 1. The current code assumes you are already familiar with Google
8 App Engine, and have it installed. If that's not true, start at 8 App Engine, and have it installed. If that's not true, start at
9 http://code.google.com/appengine/ 9 http://code.google.com/appengine/
10 10
11 In the remainder of these instructions, we assume you have gsutil unpacked 11 In the remainder of these instructions, we assume you have gsutil unpacked
12 in /usr/local/gsutil, and Google App Engine installed at /usr/local/google_appen gine 12 in /usr/local/gsutil, and Google App Engine installed at /usr/local/google_appen gine
13 13
14 2. Copy the boto and cloudreader code into the google_appengine directory: 14 2. Copy the boto and cloudreader code into the google_appengine directory:
15 % cp -pr /usr/local/gsutil/cloudreader /usr/local/google_appengine 15 % cp -pr /usr/local/gsutil/cloudreader /usr/local/google_appengine
16 % cp -pr /usr/local/gsutil/boto /usr/local/google_appengine/cloudreader 16 % cp -pr /usr/local/gsutil/boto/boto /usr/local/google_appengine/cloudreade r
17 17
18 3. Edit cloudreader/boto.cfg to contain the keys you received from Google 18 3. Edit cloudreader/boto.cfg to contain the keys you received from Google
19 (and Amazon, if you also want to use those keys): 19 (and Amazon, if you also want to use those keys):
20 % vim /usr/local/google_appengine/cloudreader/boto.cfg 20 % vim /usr/local/google_appengine/cloudreader/boto.cfg
21 (or use your favorite text editor) 21 (or use your favorite text editor)
22 22
23 FYI, the cloudreader app reads a publicly readable object 23 FYI, the cloudreader app reads a publicly readable object
24 (gs://pub/shakespeare/rose.txt), but that the boto library requires 24 (gs://pub/shakespeare/rose.txt), but that the boto library requires
25 credentials for all accesses, even to public objects. 25 credentials for all accesses, even to public objects.
26 26
(...skipping 12 matching lines...) Expand all
39 into your real app. 39 into your real app.
40 40
41 For good measure, whenever you change configurations you should try 41 For good measure, whenever you change configurations you should try
42 opening your web browser to http://localhost:8080/boto.cfg (or whatever 42 opening your web browser to http://localhost:8080/boto.cfg (or whatever
43 path your app.yaml would map to where your boto.cfg file is located). 43 path your app.yaml would map to where your boto.cfg file is located).
44 This should *fail* to open your boto.cfg file! 44 This should *fail* to open your boto.cfg file!
45 45
46 6. At this point you can upload your app to Google 46 6. At this point you can upload your app to Google
47 infrastructure, following the instructions at 47 infrastructure, following the instructions at
48 http://code.google.com/appengine/docs/python/gettingstarted/uploading.html 48 http://code.google.com/appengine/docs/python/gettingstarted/uploading.html
OLDNEW
« no previous file with comments | « third_party/gsutil/cloudauth/oauth2_plugin.py ('k') | third_party/gsutil/cloudreader/app.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698