Plugin flow:
- Fetch
http://download.watchlr.com/jsloc[?callback=foo]
every hour. - Server responds with appropriate location of
watchlr-min-<env>-<version>.js
(env
is inferred from_WENV
cookie value).
Javascript library deploy procedure:
cd js; php deploy.php <version> [<env>=prod]
- Increment version number.
- Build js library locally for
env
- Push (using script) to
download.watchlr.com
- Shell script also updates configuration on server to bump up current version number for
env
.
Plugin deploy procedure:
cd plugin
edit Version.ver
sh deploy.sh <version>
git commit Version.ver -m '[plugin-deploy] <env> <version>'; git push origin master
- Increment version number in
plugin/Version.ver
. cd plugin/Installer/Publisher; sh create_builds.sh
scp plugin/Builds/watchlr_installer_<version>.[crx|xpi] download.watchlr.com:/opt/download_env/static/plugin/
Plugin build requirements:
-
m4
apt-get install m4
-
Ruby, Gems, Development headers
apt-get install ruby rubygems ruby1.8-dev
-
Zip, OpenSSL, 7za
gem install zipruby apt-get install libopenssl-ruby1.8 apt-get install p7zip-full