forked from ether/etherpad-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
How to deploy Etherpad Lite on Cloudfoundry.com
marcelklehr edited this page Jul 11, 2012
·
11 revisions
In case you're not familiar with Cloud Foundry, it's an opensource platform as a service (PaaS) project sponsored by VMware. https://github.com/cloudfoundry
Note: This guide may not work as expected! E.g. it tells you to install an outdated version of Etherpad-Lite, that was hacked to support CloudFoundry.
- Register an account at http://www.cloudfoundry.com/signup
- Install cloud foundry command line tool using gem
gem install vmc - Login using your cf account
vmc login you_email_address
- Get etherpad code with cf support:
git clone git://github.com/rozcietrzewiacz/etherpad-lite.git; cd etherpad-lite - Install
nodeas usual - Install
npmand other dependencies withbin/installDeps.sh - Copy/rename
settings.json.templatetosettings.jsonand adjust the settings to your liking.
- Create a MySQL service (replace myDatabase with a name of your choice) :
vmc create-service mysql myDatabase -
[crucial step] Make sure you're in the
etherpad-litefolder and upload your Etherpad to the cloud with (replace myEtherpad with any name you want) :vmc push myEtherpad --mem=128 --runtime node06. You'll be asked a few questions at this point - for most of them, you can just press Enter, but make sure to answeryto the following two: - Would you like to bind any services to 'myEtherpad'?
- Would you like to use an existing provisioned service? - at this point, you'll be asked to select the service - choose the database service you've just created. Also, note the URL at which your Etherpad-Lite installation will be available.
- If all went well, you should now be able to point your browser to the url of your new Etherpad and start a new pad. Enjoy!
- The
--runtime node06option is currently necessary, sincevmcdoes not properly recognize needed version ofnode. If omitted, a0.4.*version would be used by default, which does not work with current Etherpad-Lite due to missingzlibdependency. - One can also skip creating a
mysqlservice before pushing, and create it when prompted by thepushcommand.