Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A subset mirror of the Google Libraries API CDN meant to be served from your local development machine when internet access is lacking.

NotificationsYou must be signed in to change notification settings

rmm5t/googleapis-mirror

Repository files navigation

This is a subset mirror of theGoogle LibrariesAPI CDN meant to be servedfrom your local development machine when internet access is lacking.

Instructions

Step 0: Clone this repository

git clone git://github.com/rmm5t/googleapis-mirror.git

Step 1: Runrake sync to download a copy of all the libraries listed inlibraries.txt.

You'll probably want to run this step before you lose internet access.

Step 2: Runsudo rake serve or justsudo rake (serve is the defaulttask). This binds a new virtual IP address (172.16.88.88) to the loopbackinterface, and mapsajax.googleapis.com to it using the OS X DirectoryService. It also starts a web server bound to the new virtual IP address suchthathttp://ajax.googleapis.com/ behaves like a local mirror for the GoogleLibraries.

NOTE: You must run this as sudo. To stop the local web server mirror, justCtrl-C the rake process.

Alternatives

If you aren't on OS X, you can alternatively map ajax.googleapis.com to127.0.0.1 using/etc/hosts or any equivalent. You will also need to create avirtual host on your local web server to serve ajax.googleapis.com. Here's anexample for Apache:

<VirtualHost *:80>  ServerName ajax.googleapis.com  DocumentRoot "/path/to/googleapis-mirror"  <Directory "/path/to/googleapis-mirror">     Options Indexes     Order allow,deny    Allow from all  </Directory></VirtualHost>

Author

Ryan McGeary (@rmm5t)

License

MIT License

About

A subset mirror of the Google Libraries API CDN meant to be served from your local development machine when internet access is lacking.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp