»

Building Your Jsbin Service

Log — Tags: , — Posted by Starck on November 2, 2013


  • Install node and npm
  • Install jsbin

    npm install jsbin or npm install -g jsbin

    if have node not found problem, link it to `/usr/bin

    ln -s /usr/local/bin/node /usr/bin/node

  • Clone jsbin project form github

    git clone [email protected]:remy/jsbin.git

  • Jsbin configuration settings

    Go to jsbin project folder

    cp config.default.json config.local.json and modify it. mkdir tmp; mkdir tmp/pids and chmod 777 tmp/pids

  • Install init.d script

    vim /etc/init.d/jsbin and chmod +x /etc/init.d/jsbin

    Change {userid} to your user id.

Update 2014-01-18

Using start-stop-daemon on CentOS

Adding jsbin to run at startup (CentOS)

chkconfig --level 345 jsbin on

Stopping jsbin from running at startup

chkconfig jsbin off

(c) 2024 Starck Lin | powered by WordPress