pinokiod 1.3.65 → 1.3.66
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 +7 -0
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -1894,6 +1894,13 @@ class Server {
|
|
|
1894
1894
|
// initialize kernel
|
|
1895
1895
|
await this.kernel.init({ port: this.port})
|
|
1896
1896
|
|
|
1897
|
+
|
|
1898
|
+
let ex = await this.kernel.exists(this.kernel.homedir, "ENVIRONMENT")
|
|
1899
|
+
if (!ex) {
|
|
1900
|
+
let str = Environment.ENV(this.kernel.homedir)
|
|
1901
|
+
await fs.promises.writeFile(path.resolve(this.homedir, "ENVIRONMENT"), str)
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1897
1904
|
let env = await Environment.get(this.kernel.homedir)
|
|
1898
1905
|
if (env && env.PINOKIO_PORT) {
|
|
1899
1906
|
this.port = env.PINOKIO_PORT
|