pinokiod 1.3.31 → 1.3.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/index.js +4 -1
- package/server/views/index.ejs +1 -1
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -1722,6 +1722,7 @@ class Server {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
1724
1724
|
async start(options) {
|
|
1725
|
+
console.log("** start", options)
|
|
1725
1726
|
this.debug = false
|
|
1726
1727
|
if (options) {
|
|
1727
1728
|
this.debug = options.debug
|
|
@@ -1763,11 +1764,13 @@ class Server {
|
|
|
1763
1764
|
// check version from this.store
|
|
1764
1765
|
let version = this.kernel.store.get("version")
|
|
1765
1766
|
// if the version is different from package.json version, run update logic
|
|
1767
|
+
console.log({_homedir: this.kernel.homedir, version, pinokiod: this.version.pinokiod })
|
|
1766
1768
|
if (this.kernel.homedir) {
|
|
1767
1769
|
if (version === this.version.pinokiod) {
|
|
1768
1770
|
console.log("version up to date")
|
|
1769
1771
|
} else {
|
|
1770
1772
|
// update the py module if it's already installed
|
|
1773
|
+
console.log("not up to date")
|
|
1771
1774
|
let installed = await this.kernel.bin.mod.py.installed()
|
|
1772
1775
|
console.log("py installed", installed)
|
|
1773
1776
|
if (installed) {
|
|
@@ -1786,7 +1789,7 @@ class Server {
|
|
|
1786
1789
|
this.kernel.store.set("version", this.version.pinokiod)
|
|
1787
1790
|
console.log("RESTART")
|
|
1788
1791
|
this.listening = true // set this.listening = true so all http connections get reset when restarting
|
|
1789
|
-
this.start(this.debug)
|
|
1792
|
+
this.start({ debug: this.debug, browser: this.browser })
|
|
1790
1793
|
}
|
|
1791
1794
|
}
|
|
1792
1795
|
|
package/server/views/index.ejs
CHANGED