forked from CyberAula/vish_editor
-
Notifications
You must be signed in to change notification settings - Fork 0
How to Install Vish Editor with Node.js
Aldo edited this page Feb 9, 2015
·
3 revisions
To work with Vish Editor Standalone you will need Node.js v0.8 or higher.
git clone https://github.com/joyent/node
./configure
make
make install
Finally check if Node.js is successfully installed.
node -v
v0.8.1
sudo apt-get install mongodb
Finally check if Mongodb is successfully installed.
mongo --version
MongoDB shell version: 1.2.2
###Clone Vish Editor repository:
git clone [email protected]:ging/vish_editor.git
###Install Node.js modules:
npm install
Rename /configuration/configuration_example.js to /configuration/configuration.js , and fill all configuration values.
Also rename public/vishEditor/configuration/configuration_example.js to public/vishEditor/configuration/configuration.js.
cd vish_editor
cp /configuration/configuration_example.js /configuration/configuration.js
cp public/vishEditor/configuration/configuration_example.js public/vishEditor/configuration/configuration.js
Remember to fill all configuration values.
###Create folders
mkdir data
##Run Vish Editor
Init database server
mongod --dbpath ./data/
Init Node.js web server
node app.js
Install forever as global module.
cd vish_editor/
sudo npm install forever -g
Start database server
mongod --dbpath ./data/
Start application with forever...
forever start app.js
info: Forever processing file: app.js
forever list
info: Forever processes running
data: uid command script forever pid logfile uptime
data: [0] atUK /usr/local/bin/node app.js 8201 8203 *.log 0:0:0:2.846