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

Unified Diff: chrome/common/extensions/docs/server2/README

Issue 139303023: add GCS support to docs server (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated third party library, rebased and fixed a path issue caused by rebasing Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/docs/server2/.gitignore ('k') | chrome/common/extensions/docs/server2/app.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/README
diff --git a/chrome/common/extensions/docs/server2/README b/chrome/common/extensions/docs/server2/README
index 839070317a8be159abb2bdcceaea36b80df15da6..92689044753d4692ef6e60ed1b5a8a23c8688cff 100644
--- a/chrome/common/extensions/docs/server2/README
+++ b/chrome/common/extensions/docs/server2/README
@@ -21,6 +21,33 @@ be sufficient. If for some reason you want to test against the app engine SDK:
3. View docs at http://localhost:8080/(apps|extensions)/<doc_name>
+--------------------------------------------
+Using Google Cloud Storage content providers
+
+With preview.py:
+
+ 1. create a directory "[...]/server2/local_debug/gcs/<bucketname>" for every
+ gcs bucket referenced in content_providers.json
+
+ 2. copy files to the respective local bucket directories. Preview.py has
+ no access to the real Google Cloud Storage.
+
+With start_dev_server.py:
+
+ 1. Install gsutils from https://developers.google.com/storage/docs/gsutil
+
+ 2. Set gsutil accordingly to the official instructions.
+
+ 3. Make sure you have permission to the GCS buckets specified in
+ content_providers.json by running "gsutil ls gs://bucketname"
+
+ 4. Get an oauth token (see instructions at the comment of
+ gcs_file_system_provider.py) and save it to the file
+ "[...]/server2/local_debug/gcs_debug.conf"
+
+Remember that the step 4 needs to be repeated every 10 minutes or so,
+because the oauth access token expires quickly.
+
--------------------
Deploying the Server
« no previous file with comments | « chrome/common/extensions/docs/server2/.gitignore ('k') | chrome/common/extensions/docs/server2/app.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698