Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>a) For running the script continuously, you can use tools like <a href="https://github.com/nodejitsu/forever">forever</a> or <a href="http://devo.ps/blog/2013/06/26/goodbye-node-forever-hello-pm2.html">pm2</a>, otherwise you can also <a href="https://gist.github.com/peterhost/715255">make the app a debian daemon on raspian</a> you can run with <code>sudo &lt;servicename&gt; start</code> (if you're running Arch Linux, this is handled differently I guess).</p> <p>b) If your Raspberry is reachable from the internet, you can use a <a href="https://help.github.com/articles/post-receive-hooks">GitHub hook</a> (<a href="http://developer.github.com/v3/repos/hooks/">API Documentation</a>) to run every time you push a change to your repository. This hook is basically a URL endpoint on your Pi that runs a little shell script locally.</p> <p>This script should shutdown you app gracefully, do a <code>git pull</code> for your repository and start the app/service again. You could also trigger this shell script over SSH from your local machine, e.g. <code>ssh pi@192.168.0.37 /path/to/your/script</code></p> <p>A update script could look like this:</p> <pre><code># change the 'service' command to your script runner of choice service &lt;yourapp&gt; stop cd /path/to/your/app git pull service &lt;yourapp&gt; start </code></pre> <p>c) The problem with remote updating Node itself is, that the official binary builds for Raspberry Pi appear only very irregularly, otherwise it would be easy to just download/update the binaries with wget or curl. So most of the time you either need to cross compile Node on your own machine or spend about two hours to recompile it on your Pi. If you want to go with the <a href="https://gist.github.com/adammw/3245130">unofficial builds on GitHub</a>, you can install them with <code>curl -# -L https://gist.github.com/raw/3245130/v0.10.17/node-v0.10.17-linux-arm-armv6j-vfp-hard.tar.gz | tar xzvf - --strip-components=1 -C /usr/local</code> but you need to check the file name for every release.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload