aboutsummaryrefslogtreecommitdiff
path: root/docs/_book/Usage/CLI.html
diff options
context:
space:
mode:
authorJakob Stendahl <14180120+JakobST1n@users.noreply.github.com>2018-12-06 00:23:57 +0100
committerGitHub <noreply@github.com>2018-12-06 00:23:57 +0100
commitc3f8b0a72de4a8a11bf5c8a1895143a4f5fa16ee (patch)
tree6c7a6c476f5a55661deea945d00f6a8cc3842dd5 /docs/_book/Usage/CLI.html
parent354f5b9b2acf9faa6d8117386c2b6c8e3527ecbf (diff)
parente56c60e17f5060203c993c852272e795b3ee6224 (diff)
downloadLuxcena-Neo-c3f8b0a72de4a8a11bf5c8a1895143a4f5fa16ee.tar.gz
Luxcena-Neo-c3f8b0a72de4a8a11bf5c8a1895143a4f5fa16ee.zip
Merge branch 'dev' into python
Diffstat (limited to 'docs/_book/Usage/CLI.html')
-rw-r--r--docs/_book/Usage/CLI.html72
1 files changed, 63 insertions, 9 deletions
diff --git a/docs/_book/Usage/CLI.html b/docs/_book/Usage/CLI.html
index 5ff3602..b3809aa 100644
--- a/docs/_book/Usage/CLI.html
+++ b/docs/_book/Usage/CLI.html
@@ -353,16 +353,70 @@
<p><div class="alert alert-danger hints-alert"><div class="hints-icon"><i class="fa fa-exclamation-circle"></i></div><div class="hints-container"><p>This CLI assumes root access, so please run it with <code>sudo</code></p>
</div></div></p>
<h2 id="options">Options</h2>
-<h4 id="sudo-lux-neo-uninstall"><code>sudo lux-neo uninstall</code></h4>
+<h3 id="sudo-lux-neo-uninstall"><code>sudo lux-neo uninstall</code></h3>
<p>Uninstall the whole thing. You will have to remove this script yourself.</p>
-<h4 id="sudo-lux-neo-update"><code>sudo lux-neo update</code></h4>
-<p>Update to the newest version on the current branch.</p>
-<h4 id="sudo-lux-neo-conf"><code>sudo lux-neo conf</code></h4>
+<h3 id="sudo-lux-neo-update-skipnode"><code>sudo lux-neo update (skipNode)</code></h3>
+<p>Update to the newest version on the current branch.
+If <code>skipNode</code> is the second argument, <code>npm</code> won&apos;t be run.</p>
+<h3 id="sudo-lux-neo-conf"><code>sudo lux-neo conf</code></h3>
<p>Open the strip-config in <code>nano</code>.</p>
-<h4 id="sudo-lux-neo-start"><code>sudo lux-neo start</code></h4>
-<p>Start the server.</p>
-<h4 id="sudo-lux-neo-stop"><code>sudo lux-neo stop</code></h4>
-<p>Stop the server.</p>
+<h3 id="sudo-lux-neo-start-boot"><code>sudo lux-neo start (boot)</code></h3>
+<p>Start the server.
+If you add <code>boot</code>, it will start when the system boots:</p>
+<pre><code class="lang-bash">sudo lux-neo start boot
+</code></pre>
+<h3 id="sudo-lux-neo-stop-boot"><code>sudo lux-neo stop (boot)</code></h3>
+<p>Stop the server.
+If you add <code>boot</code>, it will <em>NOT</em> start when the system boots:</p>
+<pre><code class="lang-bash">sudo lux-neo start boot
+</code></pre>
+<h3 id="sudo-lux-neo-status"><code>sudo lux-neo status</code></h3>
+<p>This will output the status of the app. First it reports if the service is running,
+and some general info. Then it prints the systemd-status report.</p>
+<p>Example output:</p>
+<pre><code class="lang-text">Luxcena-neo-cli [args: &apos;status&apos;]
+
+&#x256D;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x256E;
+&#x2502; Service active: yes &#x2502;
+&#x2502; Starts on boot: yes &#x2502;
+&#x2502; Has failed: no &#x2502;
+&#x2570;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x256F;
+
+&#x2501;&#x2501;&#x2501;Service status&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;
+&#x25CF; luxcena-neo.service - Luxcena Neo
+ Loaded: loaded (/etc/systemd/system/luxcena-neo.service; enabled; vendor preset: enabled)
+ Active: active (running) since Wed 2018-12-05 22:55:28 UTC; 6min ago
+ Main PID: 2365 (luxcena-neo.sh)
+ CGroup: /system.slice/luxcena-neo.service
+ &#x251C;&#x2500;2365 /bin/bash /home/lux-neo/src/bin/luxcena-neo.sh
+ &#x2514;&#x2500;2367 node /home/lux-neo/src/app.js
+
+Dec 05 22:55:28 LUXCENA-STUE-SKAP systemd[1]: Started Luxcena Neo.
+&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;
+</code></pre>
+<h3 id="sudo-lux-neo-log-serviceapp"><code>sudo lux-neo log service/app</code></h3>
+<p>This shows the last 20 lines of the chosen log-file. And stays open to show
+all new entries.</p>
+<p>Example output:</p>
+<pre><code class="lang-text">Luxcena-neo-cli [args: &apos;log app&apos;]
+
+&#x2501;&#x2501;&#x2501;App log (press ctrl+c to exit)&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;&#x2501;
+[3.11.2018 23:5:21:401] EVENT Starting Luxcena-Neo...
+[3.11.2018 23:5:22:462] SUCCESS Webserver now listening at *:8080
+</code></pre>
+<h3 id="sudo-lux-neo-version"><code>sudo lux-neo version</code></h3>
+<p>Currently not really doing anything usefull apart from showing which branch you are on.</p>
+<p>Example output:</p>
+<pre><code class="lang-text">Luxcena-neo-cli [args: &apos;version&apos;]
+
+&#x256D;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x256E;
+&#x2502; Version: Unknown &#x2502;
+&#x2502; branch : dev &#x2502;
+&#x2570;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x256F;
+</code></pre>
+<h3 id="sudo-lux-neo-selectbranch-branch"><code>sudo lux-neo selectBranch &lt;branch&gt;</code></h3>
+<p>This will change what branch you are on to <branch>. Stashing changes (shouldn&apos;t be a concern, but just saying it anyways).</branch></p>
+<p><em>Please note that the version-checker now will just be useless, as it does not now what branch we really are on.</em></p>
</section>
@@ -402,7 +456,7 @@
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
- gitbook.page.hasChanged({"page":{"title":"CLI","level":"1.2.3","depth":2,"next":{"title":"Scripting","level":"1.3","depth":1,"ref":"","articles":[{"title":"Support Library","level":"1.3.1","depth":2,"path":"Scripting/SupportLib/README.md","ref":"Scripting/SupportLib/README.md","articles":[]},{"title":"Examples","level":"1.3.2","depth":2,"ref":"","articles":[{"title":"Strandtest","level":"1.3.2.1","depth":3,"path":"Scripting/Examples/strandtest.md","ref":"Scripting/Examples/strandtest.md","articles":[]}]}]},"previous":{"title":"Configuration","level":"1.2.2","depth":2,"path":"Usage/Configuration.md","ref":"Usage/Configuration.md","articles":[]},"dir":"ltr"},"config":{"plugins":["code","pretty-term","hints","comment","github","emphasize","api","offline","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"emphasize":{},"offline":{},"pretty-term":{},"github":{"url":"https://github.com/jakobst1n/luxcena-neo"},"livereload":{},"search":{},"hints":{"danger":"fa fa-exclamation-circle","info":"fa fa-info-circle","tip":"fa fa-mortar-board","working":"fa fa-wrench"},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"api":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"comment":{"highlightCommented":true}},"theme":"default","author":"JakobST1n","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Luxcena-Neo wiki","gitbook":"*"},"file":{"path":"Usage/CLI.md","mtime":"2018-11-29T21:47:23.305Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-12-05T18:48:59.208Z"},"basePath":"..","book":{"language":""}});
+ gitbook.page.hasChanged({"page":{"title":"CLI","level":"1.2.3","depth":2,"next":{"title":"Scripting","level":"1.3","depth":1,"ref":"","articles":[{"title":"Support Library","level":"1.3.1","depth":2,"path":"Scripting/SupportLib/README.md","ref":"Scripting/SupportLib/README.md","articles":[]}]},"previous":{"title":"Configuration","level":"1.2.2","depth":2,"path":"Usage/Configuration.md","ref":"Usage/Configuration.md","articles":[]},"dir":"ltr"},"config":{"plugins":["code","pretty-term","hints","comment","github","emphasize","api","offline","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"emphasize":{},"offline":{},"pretty-term":{},"github":{"url":"https://github.com/jakobst1n/luxcena-neo"},"livereload":{},"search":{},"hints":{"danger":"fa fa-exclamation-circle","info":"fa fa-info-circle","tip":"fa fa-mortar-board","working":"fa fa-wrench"},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"api":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"comment":{"highlightCommented":true}},"theme":"default","author":"JakobST1n","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Luxcena-Neo wiki","gitbook":"*"},"file":{"path":"Usage/CLI.md","mtime":"2018-12-05T23:12:33.977Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-12-05T23:08:01.913Z"},"basePath":"..","book":{"language":""}});
});
</script>
</div>