Home | History | Annotate | only in /external/chromium_org/chrome/common/extensions/docs/server2
Up to higher level directory
NameDateSize
.gitignore03-Dec-201426
api_categorizer.py03-Dec-20141.7K
api_categorizer_test.py03-Dec-20142.3K
api_data_source.py03-Dec-201419.7K
api_data_source_test.py03-Dec-20149.2K
api_list_data_source.py03-Dec-20144.1K
api_list_data_source_test.py03-Dec-20147.5K
api_models.py03-Dec-20143.7K
api_models_test.py03-Dec-20146.1K
api_schema_graph.py03-Dec-20145.7K
api_schema_graph_test.py03-Dec-201416.7K
app.yaml03-Dec-2014404
app_engine_handler.py03-Dec-20141.5K
app_yaml_helper.py03-Dec-20144.4K
app_yaml_helper_test.py03-Dec-20146K
appengine_blobstore.py03-Dec-20141.9K
appengine_main.py03-Dec-2014645
appengine_url_fetcher.py03-Dec-20141.7K
appengine_wrappers.py03-Dec-20147.3K
availability_finder.py03-Dec-201414.3K
availability_finder_test.py03-Dec-201414.8K
blob_reference_store.py03-Dec-20141.1K
branch_utility.py03-Dec-20148.2K
branch_utility_test.py03-Dec-20147.5K
build_server.py03-Dec-20143.2K
cache_chain_object_store.py03-Dec-20143.2K
cache_chain_object_store_test.py03-Dec-20148.3K
caching_file_system.py03-Dec-20145.5K
caching_file_system_test.py03-Dec-20149.2K
caching_rietveld_patcher.py03-Dec-20144.1K
caching_rietveld_patcher_test.py03-Dec-20142.3K
chained_compiled_file_system.py03-Dec-20144K
chained_compiled_file_system_test.py03-Dec-20142.8K
chrome-128.png03-Dec-20143.9K
chrome-32.ico03-Dec-20145.3K
chroot_file_system.py03-Dec-20141.9K
chroot_file_system_test.py03-Dec-20143.6K
compiled_file_system.py03-Dec-20149.8K
compiled_file_system_test.py03-Dec-20148.3K
content_provider.py03-Dec-20147.4K
content_provider_test.py03-Dec-20147K
content_providers.py03-Dec-20146.9K
content_providers_test.py03-Dec-20146.6K
converter_html_parser.py03-Dec-20141.7K
cron.yaml03-Dec-2014109
cron_servlet.py03-Dec-201411.7K
cron_servlet_test.py03-Dec-20149.7K
data_source.py03-Dec-20141.2K
data_source_registry.py03-Dec-20141.5K
datastore_models.py03-Dec-20141.2K
directory_zipper.py03-Dec-20142.2K
directory_zipper_test.py03-Dec-20141.8K
docs_server_utils.py03-Dec-20141.4K
document_parser.py03-Dec-20147.4K
document_parser_test.py03-Dec-20148.3K
document_renderer.py03-Dec-20144K
document_renderer_test.py03-Dec-20145.9K
empty_dir_file_system.py03-Dec-20141,006
environment.py03-Dec-20141.2K
environment_test.py03-Dec-20141.6K
extensions_paths.py03-Dec-20141.3K
fail_on_access_file_system.py03-Dec-2014406
fake_fetchers.py03-Dec-20144.5K
fake_host_file_system_provider.py03-Dec-2014622
fake_url_fetcher.py03-Dec-20144.8K
features_bundle.py03-Dec-20145.4K
features_bundle_test.py03-Dec-20149K
features_utility.py03-Dec-20144.9K
features_utility_test.py03-Dec-20143.6K
file_system.py03-Dec-20146.3K
file_system_test.py03-Dec-20142.8K
file_system_util.py03-Dec-2014534
future.py03-Dec-20141.5K
future_test.py03-Dec-20141.7K
gcs_file_system.py03-Dec-20144.6K
gcs_file_system_provider.py03-Dec-20143.7K
github_file_system.py03-Dec-20147.2K
github_file_system_provider.py03-Dec-20141.6K
github_file_system_test.py03-Dec-20141.6K
handler.py03-Dec-20141.1K
handler_test.py03-Dec-2014468
host_file_system_iterator.py03-Dec-20141.5K
host_file_system_iterator_test.py03-Dec-20147.6K
host_file_system_provider.py03-Dec-20144.7K
host_file_system_provider_test.py03-Dec-20141.7K
instance_servlet.py03-Dec-20143.7K
instance_servlet_test.py03-Dec-20142.1K
integration_test.py03-Dec-201410.9K
known_broken_links.json03-Dec-201441.8K
link_converter.py03-Dec-20142.9K
link_error_detector.py03-Dec-201410.1K
link_error_detector_test.py03-Dec-20143K
local_file_system.py03-Dec-20143.2K
local_file_system_test.py03-Dec-20141,014
local_renderer.py03-Dec-2014686
manifest_data_source.py03-Dec-20144.8K
manifest_data_source_test.py03-Dec-20146.2K
manifest_features.py03-Dec-20141.6K
manifest_features_test.py03-Dec-20141.1K
memcache_object_store.py03-Dec-20141.2K
mock_file_system.py03-Dec-20144.2K
mock_file_system_test.py03-Dec-20144.6K
mock_function.py03-Dec-20141K
mock_function_test.py03-Dec-20141.2K
new_github_file_system.py03-Dec-201411K
new_github_file_system_test.py03-Dec-20149.9K
object_store.py03-Dec-20141.2K
object_store_creator.py03-Dec-20143.2K
object_store_creator_test.py03-Dec-20141.9K
offline_file_system.py03-Dec-2014897
patch_servlet.py03-Dec-20144.7K
patch_servlet_test.py03-Dec-20146.5K
patched_file_system.py03-Dec-20145.8K
patched_file_system_test.py03-Dec-20146.5K
patcher.py03-Dec-20141K
path_canonicalizer.py03-Dec-20144.8K
path_canonicalizer_test.py03-Dec-20146K
path_util.py03-Dec-20141.7K
path_util_test.py03-Dec-20141.1K
permissions_data_source.py03-Dec-20143.4K
permissions_data_source_test.py03-Dec-20144.8K
persistent_object_store.py03-Dec-20141.6K
persistent_object_store_test.py03-Dec-20141.7K
PRESUBMIT.py03-Dec-20143.5K
preview.py03-Dec-20144.1K
README03-Dec-20142.6K
redirector.py03-Dec-20142.2K
redirector_test.py03-Dec-20143.4K
reference_resolver.py03-Dec-20145.1K
reference_resolver_test.py03-Dec-20148.1K
render_servlet.py03-Dec-20146K
render_servlet_test.py03-Dec-20145.9K
rietveld_patcher.py03-Dec-20144.7K
rietveld_patcher_test.py03-Dec-20142.7K
robots.txt03-Dec-201451
samples_data_source.py03-Dec-20149.6K
samples_data_source_test.py03-Dec-20141,002
schema_util.py03-Dec-20143.6K
schema_util_test.py03-Dec-20144K
server_instance.py03-Dec-20146.9K
servlet.py03-Dec-20144.1K
sidenav_data_source.py03-Dec-20143.5K
sidenav_data_source_test.py03-Dec-20144.9K
special_paths.py03-Dec-2014405
start_dev_server.py03-Dec-2014915
strings_data_source.py03-Dec-2014894
subversion_file_system.py03-Dec-20147.8K
subversion_file_system_test.py03-Dec-20145.4K
table_of_contents_renderer.py03-Dec-20142K
template_data_source.py03-Dec-20141.8K
template_data_source_test.py03-Dec-20142.3K
template_renderer.py03-Dec-20142.1K
template_renderer_test.py03-Dec-2014918
test_branch_utility.py03-Dec-20142.2K
test_data/03-Dec-2014
test_file_system.py03-Dec-20144.7K
test_file_system_test.py03-Dec-20147.7K
test_object_store.py03-Dec-20142K
test_object_store_test.py03-Dec-20141.5K
test_patcher.py03-Dec-20141K
test_servlet.py03-Dec-20142.7K
test_servlet_test.py03-Dec-20141.4K
test_util.py03-Dec-20141.7K
timer.py03-Dec-20141.7K
update_server.py03-Dec-20142K
url_constants.py03-Dec-2014949
whats_new_data_source.py03-Dec-20143.4K
whats_new_data_source_test.py03-Dec-20142.9K

README

      1 --------
      2 Overview
      3 
      4 This is a Google App Engine server which serves the documentation for Chrome
      5 apps and extensions. At time of this writing, the primary URL is:
      6 http://developer.chrome.com/.
      7 
      8 
      9 ---------------------
     10 Developing the Server
     11 
     12 You shouldn't need app engine locally to develop the server, preview.py should
     13 be sufficient. If for some reason you want to test against the app engine SDK:
     14 
     15   1. Download the python Google App Engine SDK from:
     16      https://developers.google.com/appengine/downloads
     17 
     18   2. Run './start_dev_server.py <path/to/dev_appserver.py>'
     19      (dev_appserver.py is part of the App Engine)
     20 
     21   3. View docs at http://localhost:8080/(apps|extensions)/<doc_name>
     22 
     23 
     24 --------------------------------------------
     25 Using Google Cloud Storage content providers
     26 
     27 With preview.py:
     28 
     29   1. create a directory "[...]/server2/local_debug/gcs/<bucketname>" for every
     30      gcs bucket referenced in content_providers.json
     31 
     32   2. copy files to the respective local bucket directories. Preview.py has
     33      no access to the real Google Cloud Storage.
     34 
     35 With start_dev_server.py:
     36 
     37     1. Install gsutils from https://developers.google.com/storage/docs/gsutil
     38 
     39     2. Set gsutil accordingly to the official instructions.
     40 
     41     3. Make sure you have permission to the GCS buckets specified in
     42        content_providers.json by running "gsutil ls gs://bucketname"
     43 
     44     4. Get an oauth token (see instructions at the comment of
     45        gcs_file_system_provider.py) and save it to the file
     46        "[...]/server2/local_debug/gcs_debug.conf"
     47 
     48 Remember that the step 4 needs to be repeated every 10 minutes or so,
     49 because the oauth access token expires quickly.
     50 
     51 --------------------
     52 Deploying the Server
     53 
     54 You will need to have access to the http://chrome-apps-doc.appspot.com app.
     55 Contact aa (a] chromium.org, erikkay (a] chromium.org, miket (a] chromium.org,
     56 kalman (a] chromium.org, or ernestd (a] chromium.org to obtain access.
     57 
     58 Once you have access:
     59 
     60 1. Increment the version in app.yaml so we can roll back if the update breaks.
     61 
     62 2. Run build_server.py. This copies some depenencies from /third_party into the
     63    server directory so that they get uploaded to App Engine.
     64 
     65 3. Run appcfg.py (supplied with the App Engine SDK) to upload the server code:
     66 
     67     appcfg.py update .
     68 
     69 4. When prompted for your credentials, enter the information for the account
     70    that has access to the production app.
     71 
     72 5. Go to http://www.appspot.com, select the docs project, click "versions" in
     73    the sidebar, and make the version you just deployed the "default" version.
     74 
     75    If you get an error about too many versions when deploying, go into this
     76    view and delete the version which was deployed the longest time ago.  Then
     77    try to deploy again.
     78