-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Getting to know the tools in bin
The bin folder contains a bunch of tools scripts to make Etherpad work for you.
Performs tests against Etherpads API, this needs extending to cover more backend tests.. Example..
bin/backendTests.sh
Builds a dpkg debian .deb file from the source (must be run on a debby based distro).. Example..
bin/buildDebian.sh
Builds a Windows .zip file of Etherpad. Example..
bin/buildForWindows.sh
Checks to see if a pad is currupt. Example..
bin/checkPad.js test
Will test the pad with the padID "Test". It will display an error if it finds a fault..
Exports all "Etherpad Old" legacy Pads and imports them into a modern Etherpad storage format. Example..
node convert.js convertTettings.json dump.sql
The example settings for convert.js
These are the files used by the buildDebian.sh
debian build script
Runs Etherpad with node-inspector which is a useful tool for debugging server side javascript. Example..
bin/debugRun.sh
Remove a specific Pad. Example..
node bin/deletePad.js test
Extracts as much Pad data as possible so it can be used in a testing environment for debugging. Example..
node bin/extractPadData.js test
Imports into Etherpad an SQL file dumped from the Old Etherpad. Example..
node bin/importSqlFile.js dump.sql
Installs all the dependencies required by Etherpad. This is run on first run automatically. It's rare you will need to run this so probably just don't.
I'm not sure this is used any more.
Migrate pads from DirtyDB(used in Etherpad by default) to MySQL. Set your MySQL user/pass etc in settings.json Example..
node bin/migrateDirtyDBtoMySQL.js
Clones a pad to a new location up to a given revision. Useful for recovering a borked pad to a known good revision without changing the original. Example.. node bin/rebuildPad.js old_pad_id 12345 new_pad_id
Extracts all data of a pad, removes and inserts it again. The idea is to repair a pad if it has gone "faulty". Example..
node bin/repairPad.js test
Manually starts Etherpad on Linux/Unix. Example..
bin/run.sh
You can also pass the settings file as --settings thatSettingsFile.json
for example bin/run.sh --settings thatSettingsFile.json
or bin/run.sh --settings /home/etherpad/thatSettingsFile.json
Removes the src/node_modules
folder, doing a clean install of all dependencies then manually starts Etherpad on Linux/Unix. Example..
bin/cleanRun.sh
You can also pass the settings file as --settings thatSettingsFile.json
for example bin/run.sh --settings thatSettingsFile.json
or bin/run.sh --settings /home/etherpad/thatSettingsFile.json
This is a script often used by init scripts and other startup scripts. You can use it to email you when Etherpad fails. It keeps Etherpad running and helps with log handling. You would usually run this script when you want to start in production but you would usually specify this script with a startup script. Example
bin/safeRun.sh /var/log/etherpad.log
This script can be used to update all your pluigins on your Etherpad instance. Example bin/updatePlugins.sh
Prunes outdated entries from dirty.db
, potentially saving large amounts of disk space. Note that it is best
to run this script with etherpad switched off, and keep in mind that it does not automatically overwrite the existing dirty.db
file, but creates a new file named dirty.db.new
. You must rename/move things around for the changes to take effect. Example
bin/dirty-db-cleaner.py /path/to/dirty.db
- Docs
- Translating
- HTTP API
- Plugin framework (API hooks)
- Plugins (available)
- Plugins (list)
- Plugins (wishlist)
- Etherpad URIs / URLs to specific resources IE export
- Etherpad Full data export
- Introduction to the source
- Release Procedure
- Etherpad Developer guidelines
- Project to-do list
- Changeset Library documentation
- Alternative Etherpad-Clients
- Contribution guidelines
- Installing Etherpad
- Deploying Etherpad as a service
- Deploying Etherpad on CloudFoundry
- Deploying Etherpad on Heroku
- Running Etherpad on Phusion Passenger
- Putting Etherpad behind a reverse Proxy (HTTPS/SSL)
- How to setup Etherpad on Ubuntu 12.04 using Ansible
- Migrating from old Etherpad to Etherpad
- Using Etherpad with MySQL
- Customizing the Etherpad web interface
- Enable import/export functionality with AbiWord
- Getting a list of all pads
- Providing encrypted web access to Etherpad using SSL certificates
- Optimizing Etherpad performance including faster page loads
- Getting to know the tools and scripts in the Etherpad /bin/ folder
- Embedding a pad using the jQuery plugin
- Using Embed Parameters
- Integrating Etherpad in a third party app (Drupal, MediaWiki, WordPress, Atlassian, PmWiki)
- HTTP API client libraries