Mercurial > hg > nodescore
view nodescore @ 101:52e44ee1c791 tip master
enabled all scores in autostart script
author | Rob Canning <rc@kiben.net> |
---|---|
date | Tue, 21 Apr 2015 16:20:57 +0100 |
parents | a1eacfae4fcf |
children |
line wrap: on
line source
#!/bin/bash # calls phantomjs to make screenshots # of each anchor in PROJECT then calls # imagemagick to resize them for preview # panel. The size of the screenshot # is defined in rasterize.js # nodescore@kiben.net # nodescore.kiben.net export NODE_PATH=${NODE_PATH}:/home/root/node_modules/:/home/rob/node_modules/:/home/pi/node_modules/:/usr/share/nodescore/ if [ "$1" = "home" ] then SERVER='localhost:8890' else SERVER='http://nodescore.kiben.net:8889' fi BASEDIR='/usr/share/nodescore/www/m' #BASEDIR='www/m' PROJECT='seta' THUMBPATH=$BASEDIR/thumbs if [ ! -f $BASEDIR/music.html ]; then echo create $BASEDIR/music.html and add some music exit 0; fi nice -n -20 supervisor /usr/share/nodescore/nodescore.js & sleep 2; sh ss2thumb.sh $PROJECT $SERVER;