###Install Node and Bower
- Set up the NodeSource repo and install Node
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install nodejs
- Install bower:
sudo npm install -g bower
- Clone the repo:
git clone https://github.com/benweet/stackedit
- To use a domain other than 'localhost', edit
/public/res/constants.js
:constants.BASE_URL = "http://stackedit.dev:3000/";
- Inside
stackedit
runnpm install
andbower install
- Install PM2:
sudo npm install pm2 -g
- Start Stackedit via PM2:
pm2 start server.js
- Set it to run on boot:
pm2 startup server
whereserver
is the App name shown from the previous command - You will be asked to run a command in the console, copy/paste and run it to add the startup scripts
- Open your browser to
http://hostname:3000
- https://github.com/benweet/stackedit/blob/master/doc/developer-guide.md#developer-guide
- http://www.sitepoint.com/stackedit-4-0-multiple-instances-local-hosting/
- https://nodesource.com/blog/nodejs-v012-iojs-and-the-nodesource-linux-repositories
- benweet/stackedit#128
- https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04