Setup NodeJS
- Goto https://my.webfaction.com/applications/
- Add new Application of category Node
- Here’s mine Name – nodejs with Node.js 0.10.24,Open Port – Unchecked
- Make sure you’ve the following
[kesavan@web322:~/webapps]$ ls nodejs/bin/ node npm start stop
- Export the PATH
export PATH=$PATH:~/webapps/nodejs/bin
Setup Etherpad lite
- Goto https://my.webfaction.com/applications/
- Add new Application of category Static/CGI/PHP-5.5
- Here’s mine Name app_k7_etherpadlite
- Git clone the EtherPadLite
[kesavan@web322:~/webapps]$ git clone https://github.com/ether/etherpad-lite.git
- Move it to the application folder
[kesavan@web322:~/webapps]$ mv etherpad-lite ~/webapps/app_k7_etherpadlite/
Setup listening application
- Goto https://my.webfaction.com/applications/
- Create a custom application with listening to port
- Here’s mine – app_talk2_kesavan Custom app (listening on port) (port 23040 – open1) Web322
- Map it with a Website and domain.Here’s mine:
talk2_kesavan Domains Apps
Web322 – †216.185.102.20 http://chat.kesavan.info app_talk2_kesavan (Custom on /)
Change Settings:
vim ~webapps/app_k7_etherpadlite/settings.json # edit for the Port# 23040
Start EtherPadLite
- Run etherpad lite [Make sure about export PATH=$PATH:~/webapps/nodejs/bin ]
[kesavan@web322:~/webapps/app_k7_etherpadlite]$ bin/run.sh
Enjoy your etherpadlite now at the domain you mapped
This note is written in etherpadlite running on http://chat.kesavan.info/ [ Public: http://chat.kesavan.info/p/r.34336594ab4a4e21746f013cd439deb7 ]
Bonus (update)
#1 run the etherpadlite process continuously [kesavan@web322:~]$ screen ~/webapps/app_k7_etherpadlite/bin/run.sh & #2 list the screen process(es) [kesavan@web322:~]$ screen -list There is a screen on: 16269.pts-0.web322 (Detached) 1 Socket in /var/run/screen/S-kesavan. #3 back to the detached screen session screen -r 16269.pts-0.web322 #4 quit the running process , detach by above command CTRL+A then :quit
hey just a quick note to say thank you for this post — it’s the only stable webfaction etherpad guide i could find and it was super helpful 🙂
cheers,
claire