Open ccoenen opened 2 years ago
It should also be noted that windows-included plain old regular powershell with administrative privileges seems to work, I cannot fully verify this, because now I've had a running site.js on my machine before, and it might just be that one instead.
Upside of Powershell only method: you only need the install script. Downside of the Powershell only method: no emoji for you οΏ½.
PS C:\Windows\system32> iex(iwr -UseBasicParsing https://sitejs.org/install.txt).Content Installing Site.js using administrator privileges... * Downloading Site.js 20210819115729 (17.3.1/9522675)... * Extracting binary... * Installing binary... * Adding to system path... * Done! PS C:\Windows\system32> site [Windows hostname warning] Your primary DNS suffix is not set so we cannot calculate your hostname (full computer name). We are falling back to your computer name as retuned by os.hostname(). The app youβre running will most likely not work properly. To set your primary DNS suffix on Windows 10, go to Control Panel β System And Security β System β Change Settings link (next to Computer name) β [Changeβ¦] Button β [Moreβ¦] Button β enter your domain name under Primary DNS suffix of this computer. οΏ½ ββββββββββββββββββββββββββββ ββββββββββ ββββββββββββββββββββββββββββ ββββββββββ βββββββββββ βββ ββββββ ββββββββββ βββββββββββ βββ ββββββ ββ ββββββββββ βββββββββββ βββ ββββββββββββββββββββββββββ Created August 19th, 2021 at 11:57:29 Version 20210819115729-17.3.1-9522675-windows/x64 Node.js 12.16.2 Hugo 0.78.0 Base https://sitejs.org/nexe/win32-x64-12.16.2 Source https://source.small-tech.org/site.js/app/-/tree/9522675 βββββββββββββββββββββββββββββββββββββββββββββ β Like this? Fund us! β β β β Weβre a tiny, independent not-for-profit. β β https://small-tech.org/fund-us β βββββββββββββββββββββββββββββββββββββββββββββ οΏ½ β¨site.jsβ© Using locally-trusted certificates. οΏ½ β¨httpsβ© Creating server at localhost with locally-trusted certificates. οΏ½ β¨auto-encrypt-localhostβ© Local development TLS certificate exists. οΏ½ β¨httpsβ© Created HTTPS server. οΏ½ β¨site.jsβ© Watching for changes to dynamic and wildcard routes. β¨ β¨auto-encrypt-localhostβ© HTTP server is listening on port 80. οΏ½ β¨site.jsβ© Serving current directory on https://localhost οΏ½ β¨site.jsβ© For statistics, see https://localhost/aa390afda94d8af1fdb2c3dc4fa1f185
it should be noted that after successful setup, site then runs fine in any shell, including
Hi everyone!
I just tried to install site.js, and I failed a couple of times in (possibly) interesting ways. I would like to post them here in case other failed in similar ways. And if this is a common thing, maybe the setup instructions should be altered slightly.
What eventually worked
When I did the above, site would work as a command. Setup would look like this:
plain text of the above image
What did not work; things I tried before
via node.js
(also see #51) setting up from Node.js gave me a slightly older 16.0.1, but the interesting part here is, that it cannot be run with
site
, but only withsite.js.cms
- at least in my configuration.via install method in regular Powershell
This LOOKS like it runs fine, but it neither creates a
C:\Program Files\site.js
directory, nor does it work. Yes, I was asked for elevated permissions by my system, and of course I accepted them.plain text of the above image
(the same thing happens if one closes and reopens the powershell, I tried this because of possibly missing ENV-Vars)
via install method in Terminal WITHOUT ADMINISTRATIVE PRIVILEGES
This also looks like it ran fine, but did not create
C:\Program Files\site.js
either. Yes, in this case I also got asked for elevated permissions by my system, and of course I accepted them.plain text of the above image