You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.
Error: Command failed: C:\Users\jono\.small-tech.org\site.js\tls\local\mkcert-v1.4.2-windows-amd64 -install
The local CA is already installed in the system trust store! �
Note: Firefox support is not available on your platform. ℹ️
ERROR: failed to execute "keytool -importcert": exit status 1
Certificate was added to keystore
keytool error: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.8.0_211\jre\lib\security\cacerts (Access is denied)
auto encrypt is getting upset by case sensitivity of the domain name
� ❨auto-encrypt❩ SNI: Not responding to request for unsupported domain desktop-ufene8t.moose (valid domain is DESKTOP-UFENE8T.moose).
Some of the tests are failing. I do wonder if there is an expectation around the file system which isn't being met? the console output isn't rendering some of the output correctly. I think this is most clearly seen both in the logo output and the test output.
I remember this used to be a thing I would encounter on the mac with case sensitive / insensitive file systems.
( I have no idea what my current set up is )
yes I did try and line up the SiteJs in the detailed view below, yes I did give up. Sorry.
Detail
installing seems to go okay, unsure if there is a log of what the install script thought.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6 PS C:\Users\jono> iex(iwr -UseBasicParsing https://sitejs.org/install.txt).Content 📡 Downloading Site.js 20210103130813 (16.0.5/d4fe1e9)…
📦 Installing…
🎉 Done!
Creating a site and attempting to run for the first time.
PS C:\Users\jono> mkdir hello-world
Directory: C:\Users\jono
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 27/02/2021 12:37 hello-world
PS C:\Users\jono> cd .\hello-world\
PS C:\Users\jono\hello-world> echo 'Hello, world' | Out-File -Encoding UTF8 index.html
PS C:\Users\jono\hello-world> site
███████ ██ ████████ ███████ ██ ███████
██ ██ ██ ██ ██ ██
███████ ██ ██ █████ ██ ███████
██ ██ ██ ██ ██ ██ ██
███████ ██ ██ ███████ ██ █████ ███████
Created January 3rd, 2021 at 13:08:13
Version 20210103130813-16.0.5-d4fe1e9-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/d4fe1e9
╔═══════════════════════════════════════════╗
║ 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❩ Setting up…
� ❨auto-encrypt-localhost❩ Creating local certificate authority (local CA) using mkcert…
Error: Command failed: C:\Users\jono\.small-tech.org\site.js\tls\local\mkcert-v1.4.2-windows-amd64 -install
The local CA is already installed in the system trust store! �
Note: Firefox support is not available on your platform. ℹ️
ERROR: failed to execute "keytool -importcert": exit status 1
Certificate was added to keystore
keytool error: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.8.0_211\jre\lib\security\cacerts (Access is denied)
at checkExecSyncError (child_process.js:630:11)
at Object.execFileSync (child_process.js:648:15)
at Function.createServer (C:\Program Files\site.js\node_modules\@small-tech\auto-encrypt-localhost\index.js:98:22)
at Object.smallTechHttps.createServer (C:\Program Files\site.js\node_modules\@small-tech\https\index.js:42:56)
at Site._createServer (C:\Program Files\site.js\index.js:889:18)
at Site.createServer (C:\Program Files\site.js\index.js:722:24)
at new Site (C:\Program Files\site.js\index.js:337:10)
at C:\Program Files\site.js\bin\commands\serve.js:232:16
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
status: 1,
signal: null,
output: [
null,
<Buffer >,
<Buffer 54 68 65 20 6c 6f 63 61 6c 20 43 41 20 69 73 20 61 6c 72 65 61 64 79 20 69 6e 73 74 61 6c 6c 65 64 20 69 6e 20 74 68 65 20 73 79 73 74 65 6d 20 74 72 ... 305 more bytes>
],
pid: 38736,
stdout: <Buffer >,
stderr: <Buffer 54 68 65 20 6c 6f 63 61 6c 20 43 41 20 69 73 20 61 6c 72 65 61 64 79 20 69 6e 73 74 61 6c 6c 65 64 20 69 6e 20 74 68 65 20 73 79 73 74 65 6d 20 74 72 ... 305 more bytes>
}
I can't remember why I tried this, but it gets further.
PS C:\Users\jono\hello-world> site . "@hostname"
� ███████ ██ ████████ ███████ ██ ███████
██ ██ ██ ██ ██ ██
███████ ██ ██ █████ ██ ███████
██ ██ ██ ██ ██ ██ ██
███████ ██ ██ ███████ ██ █████ ███████
Created January 3rd, 2021 at 13:08:13
Version 20210103130813-16.0.5-d4fe1e9-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/d4fe1e9
╔═══════════════════════════════════════════╗
║ Like this? Fund us! ║
║ ║
║ We’re a tiny, independent not-for-profit. ║
║ https://small-tech.org/fund-us ║
╚═══════════════════════════════════════════╝
� ❨site.js❩ Using globally-trusted certificates.
� ❨site.js❩ No aliases. Only responding for DESKTOP-UFENE8T.moose.
� ❨https❩ Creating server with globally-trusted Let’s Encrypt certificates.
⚙️ ❨auto-encrypt❩ Configuration initialised.
� ❨auto-encrypt❩ Certificate does not exist; will be provisioned on first hit of the server.
� ❨https❩ Created HTTPS server.
�♀️ ❨site.js❩ Ensuring domains are reachable before starting global server.
✨ ❨site.js❩ Pre-flight domain reachability check server started.
✨ ❨site.js❩ Attempting to reach domain DESKTOP-UFENE8T.moose…
� ❨site.js❩ DESKTOP-UFENE8T.moose is reachable.
✨ ❨site.js❩ Pre-flight domain reachability check server stopped.
� ❨site.js❩ Watching for changes to dynamic and wildcard routes.
� ❨auto-encrypt❩ HTTP server is listening on port 80.
� ❨site.js❩ Serving current directory on https://DESKTOP-UFENE8T.moose
� ❨site.js❩ For statistics, see https://DESKTOP-UFENE8T.moose/5dc41fae22221497f2dc0ea228d68335
� ❨auto-encrypt❩ SNI: Not responding to request for unsupported domain desktop-ufene8t.moose (valid domain is DESKTOP-UFENE8T.moose).
Some of the tests are failing for me, I removed the pretty printing as it was hiding the errors of the tests.
PS C:\Users\jono> cd ..\..\dev\site.js\
PS C:\dev\site.js> npm test
> @small-tech/[email protected] test C:\dev\site.js
> tape test/*.js
TAP version 13
# [CLI] command parsing
ok 1 Syntax: site → command is serve
ok 2 … there are no positional arguments
ok 3 … there are no named arguments
ok 4 … command exists at specified location
ok 5 Syntax: site test/site → command is serve
ok 6 … there is one positional argument
ok 7 … the first positional argument is the path to serve
ok 8 … there are no named arguments
ok 9 Syntax: site serve → command is serve
ok 10 … there are no positional arguments
ok 11 … there are no named arguments
ok 12 Syntax: site serve test/site → command is serve
ok 13 … there is one positional argument
ok 14 … the first positional argument is the path to serve
ok 15 … there are no named arguments
ok 16 Syntax: site version → command is version
ok 17 … command exists at specified location
ok 18 Syntax: site --version → command is version
ok 19 Syntax: site -v → command is version
ok 20 Syntax: site help → command is help
ok 21 … command exists at specified location
ok 22 Syntax: site uninstall → command is uninstall
ok 23 … command exists at specified location
ok 24 Syntax: site enable → command is enable
ok 25 … command exists at specified location
ok 26 Syntax: site enable test/site → command is enable
ok 27 … there is one positional argument
ok 28 … the first positional argument is the path to serve
ok 29 Syntax: site disable → command is disable
ok 30 … command exists at specified location
ok 31 Syntax: site logs → command is logs
ok 32 … command exists at specified location
ok 33 Syntax: site status → command is status
ok 34 … command exists at specified location
# [commands] version
ok 35 version screen includes Site.js header
ok 36 version screen includes creation date line
ok 37 version screen includes binary version line
ok 38 version screen includes Node.js version line
ok 39 version screen includes Hugo version line
ok 40 version screen includes nexe base link
ok 41 version screen includes source link
# [commands] systemd startup daemon
ok 42 On non-supported systems, daemon command enable fails gracefully as expected
ok 43 On non-supported systems, daemon command disable fails gracefully as expected
ok 44 On non-supported systems, daemon command start fails gracefully as expected
ok 45 On non-supported systems, daemon command stop fails gracefully as expected
ok 46 On non-supported systems, daemon command restart fails gracefully as expected
ok 47 On non-supported systems, daemon command status fails gracefully as expected
# [commands] help
not ok 48 Actual help output should match expected output (linux with systemd)
---
operator: equal
expected: |-
'Usage:Γû╢site[command][folder|:port][@host[:port]][--options]commandserve|pull|push|enable|disable|start|stop|restart|logs|status|update|hugo|uninstall|version|helpfolder|:portPathoffoldertoserve(defaultstocurrentfolder)orportonlocalhosttoproxy.@host[:port]Host(and,optionallyport)tosync.Validhostsare@localhostand@hostname.--optionsSettingsthataltercommandbehaviour.Key:[]=optional|=orΓû╢=commandpromptCommands:serveServespecifiedfolder(orproxyspecified:port)onspecified@host(at:port,ifgiven).Theorderofargumentsis:1.whattoserve,2.wheretoserveit.e.g.,Γû╢siteservemy-folder@localhostIfaport(e.g.,:1313)isspecifiedinsteadofmy-folder,startanHTTP/WebSocketproxy.pullPull(download)yoursitefromaremoteSmallWebserver.pushPush(deploy)yoursitetoaremoteSmallWebserver.enableStartserverasdaemonwithglobally-trustedcertificatesandaddtostartup.disableStopserverdaemonandremovefromstartup.startStartserverasdaemonwithglobally-trustedcertificates.stopStopserverdaemon.restartRestartserverdaemon.logsDisplayandtailserverlogs.statusDisplaydetailedserverinformation.hugoPassestheremainderofthecommandstringtotheintegratedHugostaticsitegenerator.updateCheckforSite.jsupdatesandupdateifnewversionisfound.uninstallUninstallSite.js.versionDisplayversionandexit.helpDisplaythishelpscreenandexit.Ifcommandisomitted,behaviourdefaultstoserve.Options:Forbothserveandenablecommands:--domainThemaindomaintoserve(defaultstosystemhostnameifnotspecified).--aliasesAdditionaldomainaliasestoobtainTLScertsfor.Will302redirecttomaindomain.--skip-domain-reachability-checkDonotrunpre-flightcheckfordomainreachability.--access-log-errors-onlyDisplayonlyerrorsintheaccesslog(HTTPstatuscodes_4xx_and_5xx_).--access-log-disableCompletelydisabletheaccesslog.Notevenerrorsarelogged.Forservecommand:--sync-toThehosttosyncto(othersyncoptionsonlyrelevantifthisissupplied).--sync-fromThefoldertosyncfrom.--live-syncWatchforchangesandlivesyncthemtoaremoteserver.--sync-folder-and-contentsSynclocalfolderandcontents(defaultistosyncthefolderΓÇÖscontentsonly).Forenablecommand:--ensure-can-syncEnsureservercanrsyncviassh.Forbothpullandpushcommands:--domainSpecifythedomaintosynctomanually(otherwisederivedfromthefoldername).Examples:Developusinglocally-trustedTLScertificates:ΓÇóServecurrentfolderΓû╢site(allforms;shorthandtofullsyntax)Γû╢siteserveΓû╢siteserve.Γû╢siteserve.@localhostΓû╢siteserve.@localhost:443ΓÇóServefolderdemo(shorthand)Γû╢sitedemoΓÇóServefolderdemoatport666Γû╢siteservedemo@localhost:666ΓÇóProxylocalhost:1313Γçähttps://localhostΓû╢site:1313(shorthandandfull)Γû╢siteserve:1313@localhost:443ΓÇóSyncdemofoldertomy.siteΓû╢sitedemo--sync-to=my.siteΓÇóDitto,butuseaccountmeonmy.siteΓû╢[email protected]ΓÇóDitto,butsynctoremotefolder~/wwwΓû╢[email protected]:wwwΓÇóDitto,butspecifyabsolutepathΓû╢[email protected]:/home/me/wwwΓÇóLiveSynccurrentfoldertomy.siteΓû╢site--sync-to=my.site--live-syncStageanddeployusingglobally-trustedLetΓÇÖsEncryptcertificates:Regularprocess:ΓÇóServecurrentfolderΓû╢site@hostnameΓÇóServecurrentfolderatspecifieddomainΓû╢site@hostname--domain=my.siteΓÇóServecurrentfolderalsoataliasesΓû╢site@hostname--aliases=www,other.site,www.other.siteΓÇóServefolderdemoΓû╢sitedemo@hostname(shorthandandfull)Γû╢siteservedemo@hostnameΓÇóProxylocalhost:1313Γçähttps://hostnameΓû╢siteserve:1313@hostnameStart-updaemon:ΓÇóInstall&servecurrentfolderasdaemonΓû╢siteenableΓÇóDitto&alsoensureitcanrsyncviasshΓû╢siteenable--ensure-can-syncΓÇóGetstatusofdeamonΓû╢sitestatusΓÇóStartserverΓû╢sitestartΓÇóStopserverΓû╢sitestopΓÇóRestartserverΓû╢siterestartΓÇóDisplayserverlogsΓû╢sitelogsΓÇóStopanduninstallcurrentdaemonΓû╢sitedisableStaticsitegeneration:ΓÇóCreateanewHugositeΓû╢sitehugonewsitedemoGeneral:ΓÇóCheckforupdatesandupdateiffoundΓû╢siteupdateForfurtherinformation,pleaseseehttps://sitejs.org'
actual: |-
'\x1b[4mUsage:\x1b[0m\x1b[34mΓû╢\x1b[0m\x1b[1msite\x1b[0m[\x1b[32mcommand\x1b[0m][\x1b[36mfolder\x1b[0m|\x1b[36m:port\x1b[0m][\x1b[36m@host[:port]\x1b[0m][\x1b[33m--options\x1b[0m]\x1b[32mcommand\x1b[0m\x1b[32mserve\x1b[0m|\x1b[32mpull\x1b[0m|\x1b[32mpush\x1b[0m|\x1b[32menable\x1b[0m|\x1b[32mdisable\x1b[0m|\x1b[32mstart\x1b[0m|\x1b[32mstop\x1b[0m|\x1b[32mrestart\x1b[0m|\x1b[32mlogs\x1b[0m|\x1b[32mstatus\x1b[0m|\x1b[32mupdate\x1b[0m|\x1b[32mhugo\x1b[0m|\x1b[32muninstall\x1b[0m|\x1b[32mversion\x1b[0m|\x1b[32mhelp\x1b[0m\x1b[36mfolder\x1b[0m|\x1b[36m:port\x1b[0mPathoffoldertoserve(defaultstocurrentfolder)orportonlocalhosttoproxy.\x1b[36m@host[:port]\x1b[0mHost(and,optionallyport)tosync.Validhostsare@localhostand@hostname.\x1b[33m--options\x1b[0mSettingsthataltercommandbehaviour.\x1b[4mKey:\x1b[0m[]=optional|=or\x1b[34mΓû╢\x1b[0m=commandprompt\x1b[4mCommands:\x1b[0m\x1b[32mserve\x1b[0mServespecified\x1b[36mfolder\x1b[0m(orproxyspecified\x1b[36m:port\x1b[0m)onspecified\x1b[36m@host\x1b[0m(at\x1b[36m:port\x1b[0m,ifgiven).Theorderofargumentsis:1.whattoserve,2.wheretoserveit.e.g.,\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36mmy-folder\x1b[0m\x1b[36m@localhost\x1b[0mIfaport(e.g.,\x1b[36m:1313\x1b[0m)isspecifiedinsteadof\x1b[36mmy-folder\x1b[0m,startanHTTP/WebSocketproxy.\x1b[32mpull\x1b[0mPull(download)yoursitefromaremoteSmallWebserver.\x1b[32mpush\x1b[0mPush(deploy)yoursitetoaremoteSmallWebserver.\x1b[32menable\x1b[0mStartserverasdaemonwithglobally-trustedcertificatesandaddtostartup.\x1b[32mdisable\x1b[0mStopserverdaemonandremovefromstartup.\x1b[32mstart\x1b[0mStartserverasdaemonwithglobally-trustedcertificates.\x1b[32mstop\x1b[0mStopserverdaemon.\x1b[32mrestart\x1b[0mRestartserverdaemon.\x1b[32mlogs\x1b[0mDisplayandtailserverlogs.\x1b[32mstatus\x1b[0mDisplaydetailedserverinformation.\x1b[32mhugo\x1b[0mPassestheremainderofthecommandstringtotheintegratedHugostaticsitegenerator.\x1b[32mupdate\x1b[0mCheckforSite.jsupdatesandupdateifnewversionisfound.\x1b[32muninstall\x1b[0mUninstallSite.js.\x1b[32mversion\x1b[0mDisplayversionandexit.\x1b[32mhelp\x1b[0mDisplaythishelpscreenandexit.If\x1b[32mcommand\x1b[0misomitted,behaviourdefaultsto\x1b[32mserve\x1b[0m.\x1b[4mOptions:\x1b[0mForboth\x1b[32mserve\x1b[0mand\x1b[32menable\x1b[0mcommands:\x1b[33m--domain\x1b[0mThemaindomaintoserve(defaultstosystemhostnameifnotspecified).\x1b[33m--aliases\x1b[0mAdditionaldomainaliasestoobtainTLScertsfor.Will302redirecttomaindomain.\x1b[33m--skip-domain-reachability-check\x1b[0mDonotrunpre-flightcheckfordomainreachability.\x1b[33m--access-log-errors-only\x1b[0mDisplayonlyerrorsintheaccesslog(HTTPstatuscodes_4xx_and_5xx_).\x1b[33m--access-log-disable\x1b[0mCompletelydisabletheaccesslog.Notevenerrorsarelogged.For\x1b[32mserve\x1b[0mcommand:\x1b[33m--sync-to\x1b[0mThehosttosyncto(othersyncoptionsonlyrelevantifthisissupplied).\x1b[33m--sync-from\x1b[0mThefoldertosyncfrom.\x1b[33m--live-sync\x1b[0mWatchforchangesandlivesyncthemtoaremoteserver.\x1b[33m--sync-folder-and-contents\x1b[0mSynclocalfolderandcontents(defaultistosyncthefolderΓÇÖscontentsonly).For\x1b[32menable\x1b[0mcommand:\x1b[33m--ensure-can-sync\x1b[0mEnsureservercanrsyncviassh.Forboth\x1b[32mpull\x1b[0mand\x1b[32mpush\x1b[0mcommands:\x1b[33m--domain\x1b[0mSpecifythedomaintosynctomanually(otherwisederivedfromthefoldername).\x1b[4mExamples:\x1b[0m\x1b[4mDevelopusinglocally-trustedTLScertificates:\x1b[0mΓÇóServecurrentfolder\x1b[34mΓû╢\x1b[0msite\x1b[3m(allforms;shorthandtofullsyntax)\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m.\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m.\x1b[0m\x1b[36m@localhost\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m.\x1b[0m\x1b[36m@localhost:443\x1b[0mΓÇóServefolder\x1b[36mdemo\x1b[0m\x1b[3m(shorthand)\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0mΓÇóServefolder\x1b[36mdemo\x1b[0matport666\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36mdemo\x1b[0m\x1b[36m@localhost:666\x1b[0mΓÇóProxy\x1b[36mlocalhost:1313\x1b[0mΓçähttps://localhost\x1b[34mΓû╢\x1b[0msite\x1b[36m:1313\x1b[0m(shorthandandfull)\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m:1313\x1b[0m\x1b[36m@localhost:443\x1b[0mΓÇóSync\x1b[36mdemo\x1b[0mfolderto\x1b[36mmy.site\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[33m--sync-to\x1b[0m=\x1b[36mmy.site\x1b[0mΓÇóDitto,butuseaccount\x1b[36mme\x1b[0mon\x1b[36mmy.site\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[33m--sync-to\x1b[0m=\x1b[[email protected]\x1b[0mΓÇóDitto,butsynctoremotefolder\x1b[36m~/www\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[33m--sync-to\x1b[0m=\x1b[[email protected]:www\x1b[0mΓÇóDitto,butspecifyabsolutepath\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[33m--sync-to\x1b[0m=\x1b[[email protected]:/home/me/www\x1b[0mΓÇóLiveSynccurrentfolderto\x1b[36mmy.site\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[33m--sync-to\x1b[0m=\x1b[36mmy.site\x1b[0m\x1b[33m--live-sync\x1b[0m\x1b[4mStageanddeployusingglobally-trustedLetΓÇÖsEncryptcertificates:\x1b[0mRegularprocess:ΓÇóServecurrentfolder\x1b[34mΓû╢\x1b[0msite\x1b[36m@hostname\x1b[0mΓÇóServecurrentfolderatspecifieddomain\x1b[34mΓû╢\x1b[0msite\x1b[36m@hostname\x1b[0m\x1b[33m--domain\x1b[0m=\x1b[36mmy.site\x1b[0mΓÇóServecurrentfolderalsoataliases\x1b[34mΓû╢\x1b[0msite\x1b[36m@hostname\x1b[0m\x1b[33m--aliases\x1b[0m=\x1b[36mwww,other.site,www.other.site\x1b[0mΓÇóServefolder\x1b[36mdemo\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[36m@hostname\x1b[0m(shorthandandfull)\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36mdemo\x1b[0m\x1b[36m@hostname\x1b[0mΓÇóProxy\x1b[36mlocalhost:1313\x1b[0mΓçähttps://hostname\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m:1313\x1b[0m\x1b[36m@hostname\x1b[0mStart-updaemon:ΓÇóInstall&servecurrentfolderasdaemon\x1b[34mΓû╢\x1b[0msite\x1b[32menable\x1b[0mΓÇóDitto&alsoensureitcanrsyncviassh\x1b[34mΓû╢\x1b[0msite\x1b[32menable\x1b[0m\x1b[33m--ensure-can-sync\x1b[0mΓÇóGetstatusofdeamon\x1b[34mΓû╢\x1b[0msite\x1b[32mstatus\x1b[0mΓÇóStartserver\x1b[34mΓû╢\x1b[0msite\x1b[32mstart\x1b[0mΓÇóStopserver\x1b[34mΓû╢\x1b[0msite\x1b[32mstop\x1b[0mΓÇóRestartserver\x1b[34mΓû╢\x1b[0msite\x1b[32mrestart\x1b[0mΓÇóDisplayserverlogs\x1b[34mΓû╢\x1b[0msite\x1b[32mlogs\x1b[0mΓÇóStopanduninstallcurrentdaemon\x1b[34mΓû╢\x1b[0msite\x1b[32mdisable\x1b[0m\x1b[4mStaticsitegeneration:\x1b[0mΓÇóCreateanewHugosite\x1b[34mΓû╢\x1b[0msite\x1b[32mhugo\x1b[0m\x1b[36mnewsitedemo\x1b[0m\x1b[4mGeneral:\x1b[0mΓÇóCheckforupdatesandupdateiffound\x1b[34mΓû╢\x1b[0msite\x1b[32mupdate\x1b[0m\x1b[3mForfurtherinformation,pleaseseehttps://sitejs.org\x1b[0m'
at: Test.<anonymous> (C:\dev\site.js\test\commands.js:483:5)
stack: |-
Error: Actual help output should match expected output (linux with systemd)
at Test.assert [as _assert] (C:\dev\site.js\node_modules\tape\lib\test.js:260:54)
at Test.bound [as _assert] (C:\dev\site.js\node_modules\tape\lib\test.js:84:32)
at Test.strictEqual (C:\dev\site.js\node_modules\tape\lib\test.js:424:10)
at Test.bound [as strictEquals] (C:\dev\site.js\node_modules\tape\lib\test.js:84:32)
at Test.<anonymous> (C:\dev\site.js\test\commands.js:483:5)
at Test.bound [as _cb] (C:\dev\site.js\node_modules\tape\lib\test.js:84:32)
at Test.run (C:\dev\site.js\node_modules\tape\lib\test.js:101:31)
at Test.bound [as run] (C:\dev\site.js\node_modules\tape\lib\test.js:84:32)
at Immediate.next [as _onImmediate] (C:\dev\site.js\node_modules\tape\lib\results.js:85:19)
at processImmediate (internal/timers.js:456:21)
...
not ok 49 Actual help output should match expectated output (linux without systemd)
---
operator: equal
expected: |-
'Usage:Γû╢site[command][folder|:port][@host[:port]][--options]commandserve|pull|push|update|hugo|uninstall|version|helpfolder|:portPathoffoldertoserve(defaultstocurrentfolder)orportonlocalhosttoproxy.@host[:port]Host(and,optionallyport)tosync.Validhostsare@localhostand@hostname.--optionsSettingsthataltercommandbehaviour.Key:[]=optional|=orΓû╢=commandpromptCommands:serveServespecifiedfolder(orproxyspecified:port)onspecified@host(at:port,ifgiven).Theorderofargumentsis:1.whattoserve,2.wheretoserveit.e.g.,Γû╢siteservemy-folder@localhostIfaport(e.g.,:1313)isspecifiedinsteadofmy-folder,startanHTTP/WebSocketproxy.pullPull(download)yoursitefromaremoteSmallWebserver.pushPush(deploy)yoursitetoaremoteSmallWebserver.hugoPassestheremainderofthecommandstringtotheintegratedHugostaticsitegenerator.updateCheckforSite.jsupdatesandupdateifnewversionisfound.uninstallUninstallSite.js.versionDisplayversionandexit.helpDisplaythishelpscreenandexit.Ifcommandisomitted,behaviourdefaultstoserve.Options:Forservecommand:--domainThemaindomaintoserve(defaultstosystemhostnameifnotspecified).--aliasesAdditionaldomainaliasestoobtainTLScertsfor.Will302redirecttomaindomain.--skip-domain-reachability-checkDonotrunpre-flightcheckfordomainreachability.--access-log-errors-onlyDisplayonlyerrorsintheaccesslog(HTTPstatuscodes_4xx_and_5xx_).--access-log-disableCompletelydisabletheaccesslog.Notevenerrorsarelogged.--sync-toThehosttosyncto(othersyncoptionsonlyrelevantifthisissupplied).--sync-fromThefoldertosyncfrom.--live-syncWatchforchangesandlivesyncthemtoaremoteserver.--sync-folder-and-contentsSynclocalfolderandcontents(defaultistosyncthefolderΓÇÖscontentsonly).Forbothpullandpushcommands:--domainSpecifythedomaintosynctomanually(otherwisederivedfromthefoldername).Examples:Developusinglocally-trustedTLScertificates:ΓÇóServecurrentfolderΓû╢site(allforms;shorthandtofullsyntax)Γû╢siteserveΓû╢siteserve.Γû╢siteserve.@localhostΓû╢siteserve.@localhost:443ΓÇóServefolderdemo(shorthand)Γû╢sitedemoΓÇóServefolderdemoatport666Γû╢siteservedemo@localhost:666ΓÇóProxylocalhost:1313Γçähttps://localhostΓû╢site:1313(shorthandandfull)Γû╢siteserve:1313@localhost:443ΓÇóSyncdemofoldertomy.siteΓû╢sitedemo--sync-to=my.siteΓÇóDitto,butuseaccountmeonmy.siteΓû╢[email protected]ΓÇóDitto,butsynctoremotefolder~/wwwΓû╢[email protected]:wwwΓÇóDitto,butspecifyabsolutepathΓû╢[email protected]:/home/me/wwwΓÇóLiveSynccurrentfoldertomy.siteΓû╢site--sync-to=my.site--live-syncStageusingglobally-trustedLetΓÇÖsEncryptcertificates:ΓÇóServecurrentfolderΓû╢site@hostnameΓÇóServecurrentfolderatspecifieddomainΓû╢site@hostname--domain=my.siteΓÇóServecurrentfolderalsoataliasesΓû╢site@hostname--aliases=www,other.site,www.other.siteΓÇóServefolderdemoΓû╢sitedemo@hostname(shorthandandfull)Γû╢siteservedemo@hostnameΓÇóProxylocalhost:1313Γçähttps://hostnameΓû╢siteserve:1313@hostnameStaticsitegeneration:ΓÇóCreateanewHugositeΓû╢sitehugonewsitedemoGeneral:ΓÇóCheckforupdatesandupdateiffoundΓû╢siteupdateLinux-specificnotes:-ProductionuseisnotavailableonthisLinuxdistributionassystemddoesnotexist.-Forproductionuse,wecurrentlyrecommendusingUbuntu18.04or20.04LTS.Forfurtherinformation,pleaseseehttps://sitejs.org'
actual: |-
'\x1b[4mUsage:\x1b[0m\x1b[34mΓû╢\x1b[0m\x1b[1msite\x1b[0m[\x1b[32mcommand\x1b[0m][\x1b[36mfolder\x1b[0m|\x1b[36m:port\x1b[0m][\x1b[36m@host[:port]\x1b[0m][\x1b[33m--options\x1b[0m]\x1b[32mcommand\x1b[0m\x1b[32mserve\x1b[0m|\x1b[32mpull\x1b[0m|\x1b[32mpush\x1b[0m|\x1b[32mupdate\x1b[0m|\x1b[32mhugo\x1b[0m|\x1b[32muninstall\x1b[0m|\x1b[32mversion\x1b[0m|\x1b[32mhelp\x1b[0m\x1b[36mfolder\x1b[0m|\x1b[36m:port\x1b[0mPathoffoldertoserve(defaultstocurrentfolder)orportonlocalhosttoproxy.\x1b[36m@host[:port]\x1b[0mHost(and,optionallyport)tosync.Validhostsare@localhostand@hostname.\x1b[33m--options\x1b[0mSettingsthataltercommandbehaviour.\x1b[4mKey:\x1b[0m[]=optional|=or\x1b[34mΓû╢\x1b[0m=commandprompt\x1b[4mCommands:\x1b[0m\x1b[32mserve\x1b[0mServespecified\x1b[36mfolder\x1b[0m(orproxyspecified\x1b[36m:port\x1b[0m)onspecified\x1b[36m@host\x1b[0m(at\x1b[36m:port\x1b[0m,ifgiven).Theorderofargumentsis:1.whattoserve,2.wheretoserveit.e.g.,\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36mmy-folder\x1b[0m\x1b[36m@localhost\x1b[0mIfaport(e.g.,\x1b[36m:1313\x1b[0m)isspecifiedinsteadof\x1b[36mmy-folder\x1b[0m,startanHTTP/WebSocketproxy.\x1b[32mpull\x1b[0mPull(download)yoursitefromaremoteSmallWebserver.\x1b[32mpush\x1b[0mPush(deploy)yoursitetoaremoteSmallWebserver.\x1b[32mhugo\x1b[0mPassestheremainderofthecommandstringtotheintegratedHugostaticsitegenerator.\x1b[32mupdate\x1b[0mCheckforSite.jsupdatesandupdateifnewversionisfound.\x1b[32muninstall\x1b[0mUninstallSite.js.\x1b[32mversion\x1b[0mDisplayversionandexit.\x1b[32mhelp\x1b[0mDisplaythishelpscreenandexit.If\x1b[32mcommand\x1b[0misomitted,behaviourdefaultsto\x1b[32mserve\x1b[0m.\x1b[4mOptions:\x1b[0mFor\x1b[32mserve\x1b[0mcommand:\x1b[33m--domain\x1b[0mThemaindomaintoserve(defaultstosystemhostnameifnotspecified).\x1b[33m--aliases\x1b[0mAdditionaldomainaliasestoobtainTLScertsfor.Will302redirecttomaindomain.\x1b[33m--skip-domain-reachability-check\x1b[0mDonotrunpre-flightcheckfordomainreachability.\x1b[33m--access-log-errors-only\x1b[0mDisplayonlyerrorsintheaccesslog(HTTPstatuscodes_4xx_and_5xx_).\x1b[33m--access-log-disable\x1b[0mCompletelydisabletheaccesslog.Notevenerrorsarelogged.\x1b[33m--sync-to\x1b[0mThehosttosyncto(othersyncoptionsonlyrelevantifthisissupplied).\x1b[33m--sync-from\x1b[0mThefoldertosyncfrom.\x1b[33m--live-sync\x1b[0mWatchforchangesandlivesyncthemtoaremoteserver.\x1b[33m--sync-folder-and-contents\x1b[0mSynclocalfolderandcontents(defaultistosyncthefolderΓÇÖscontentsonly).Forboth\x1b[32mpull\x1b[0mand\x1b[32mpush\x1b[0mcommands:\x1b[33m--domain\x1b[0mSpecifythedomaintosynctomanually(otherwisederivedfromthefoldername).\x1b[4mExamples:\x1b[0m\x1b[4mDevelopusinglocally-trustedTLScertificates:\x1b[0mΓÇóServecurrentfolder\x1b[34mΓû╢\x1b[0msite\x1b[3m(allforms;shorthandtofullsyntax)\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m.\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m.\x1b[0m\x1b[36m@localhost\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m.\x1b[0m\x1b[36m@localhost:443\x1b[0mΓÇóServefolder\x1b[36mdemo\x1b[0m\x1b[3m(shorthand)\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0mΓÇóServefolder\x1b[36mdemo\x1b[0matport666\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36mdemo\x1b[0m\x1b[36m@localhost:666\x1b[0mΓÇóProxy\x1b[36mlocalhost:1313\x1b[0mΓçähttps://localhost\x1b[34mΓû╢\x1b[0msite\x1b[36m:1313\x1b[0m(shorthandandfull)\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m:1313\x1b[0m\x1b[36m@localhost:443\x1b[0mΓÇóSync\x1b[36mdemo\x1b[0mfolderto\x1b[36mmy.site\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[33m--sync-to\x1b[0m=\x1b[36mmy.site\x1b[0mΓÇóDitto,butuseaccount\x1b[36mme\x1b[0mon\x1b[36mmy.site\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[33m--sync-to\x1b[0m=\x1b[[email protected]\x1b[0mΓÇóDitto,butsynctoremotefolder\x1b[36m~/www\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[33m--sync-to\x1b[0m=\x1b[[email protected]:www\x1b[0mΓÇóDitto,butspecifyabsolutepath\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[33m--sync-to\x1b[0m=\x1b[[email protected]:/home/me/www\x1b[0mΓÇóLiveSynccurrentfolderto\x1b[36mmy.site\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[33m--sync-to\x1b[0m=\x1b[36mmy.site\x1b[0m\x1b[33m--live-sync\x1b[0m\x1b[4mStageusingglobally-trustedLetΓÇÖsEncryptcertificates:\x1b[0mΓÇóServecurrentfolder\x1b[34mΓû╢\x1b[0msite\x1b[36m@hostname\x1b[0mΓÇóServecurrentfolderatspecifieddomain\x1b[34mΓû╢\x1b[0msite\x1b[36m@hostname\x1b[0m\x1b[33m--domain\x1b[0m=\x1b[36mmy.site\x1b[0mΓÇóServecurrentfolderalsoataliases\x1b[34mΓû╢\x1b[0msite\x1b[36m@hostname\x1b[0m\x1b[33m--aliases\x1b[0m=\x1b[36mwww,other.site,www.other.site\x1b[0mΓÇóServefolder\x1b[36mdemo\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[36m@hostname\x1b[0m(shorthandandfull)\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36mdemo\x1b[0m\x1b[36m@hostname\x1b[0mΓÇóProxy\x1b[36mlocalhost:1313\x1b[0mΓçähttps://hostname\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m:1313\x1b[0m\x1b[36m@hostname\x1b[0m\x1b[4mStaticsitegeneration:\x1b[0mΓÇóCreateanewHugosite\x1b[34mΓû╢\x1b[0msite\x1b[32mhugo\x1b[0m\x1b[36mnewsitedemo\x1b[0m\x1b[4mGeneral:\x1b[0mΓÇóCheckforupdatesandupdateiffound\x1b[34mΓû╢\x1b[0msite\x1b[32mupdate\x1b[0m\x1b[4mLinux-specificnotes:\x1b[0m-ProductionuseisnotavailableonthisLinuxdistributionassystemddoesnotexist.-Forproductionuse,wecurrentlyrecommendusingUbuntu18.04or20.04LTS.\x1b[3mForfurtherinformation,pleaseseehttps://sitejs.org\x1b[0m'
at: Test.<anonymous> (C:\dev\site.js\test\commands.js:573:5)
stack: |-
Error: Actual help output should match expectated output (linux without systemd)
at Test.assert [as _assert] (C:\dev\site.js\node_modules\tape\lib\test.js:260:54)
at Test.bound [as _assert] (C:\dev\site.js\node_modules\tape\lib\test.js:84:32)
at Test.strictEqual (C:\dev\site.js\node_modules\tape\lib\test.js:424:10)
at Test.bound [as strictEquals] (C:\dev\site.js\node_modules\tape\lib\test.js:84:32)
at Test.<anonymous> (C:\dev\site.js\test\commands.js:573:5)
at Test.bound [as _cb] (C:\dev\site.js\node_modules\tape\lib\test.js:84:32)
at Test.run (C:\dev\site.js\node_modules\tape\lib\test.js:101:31)
at Test.bound [as run] (C:\dev\site.js\node_modules\tape\lib\test.js:84:32)
at Immediate.next [as _onImmediate] (C:\dev\site.js\node_modules\tape\lib\results.js:85:19)
at processImmediate (internal/timers.js:456:21)
...
not ok 50 Actual help output should match expected output (windows)
---
operator: equal
expected: |-
'Usage:Γû╢site[command][folder|:port]["@host[:port]"][--options]commandserve|pull|push|update|hugo|uninstall|version|helpfolder|:portPathoffoldertoserve(defaultstocurrentfolder)orportonlocalhosttoproxy."@host[:port]"Host(and,optionallyport)tosync.Validhostsare@localhostand@hostname.--optionsSettingsthataltercommandbehaviour.Key:[]=optional|=orΓû╢=commandpromptCommands:serveServespecifiedfolder(orproxyspecified:port)onspecified"@host"(at:port,ifgiven).Theorderofargumentsis:1.whattoserve,2.wheretoserveit.e.g.,Γû╢siteservemy-folder"@localhost"Ifaport(e.g.,:1313)isspecifiedinsteadofmy-folder,startanHTTP/WebSocketproxy.pullPull(download)yoursitefromaremoteSmallWebserver.pushPush(deploy)yoursitetoaremoteSmallWebserver.hugoPassestheremainderofthecommandstringtotheintegratedHugostaticsitegenerator.updateCheckforSite.jsupdatesandupdateifnewversionisfound.uninstallUninstallSite.js.versionDisplayversionandexit.helpDisplaythishelpscreenandexit.Ifcommandisomitted,behaviourdefaultstoserve.Options:Forservecommand:--domainThemaindomaintoserve(defaultstosystemhostnameifnotspecified).--aliasesAdditionaldomainaliasestoobtainTLScertsfor.Will302redirecttomaindomain.--skip-domain-reachability-checkDonotrunpre-flightcheckfordomainreachability.--access-log-errors-onlyDisplayonlyerrorsintheaccesslog(HTTPstatuscodes_4xx_and_5xx_).--access-log-disableCompletelydisabletheaccesslog.Notevenerrorsarelogged.--sync-toThehosttosyncto(othersyncoptionsonlyrelevantifthisissupplied).--sync-fromThefoldertosyncfrom.--live-syncWatchforchangesandlivesyncthemtoaremoteserver.--sync-folder-and-contentsSynclocalfolderandcontents(defaultistosyncthefolderΓÇÖscontentsonly).Forbothpullandpushcommands:--domainSpecifythedomaintosynctomanually(otherwisederivedfromthefoldername).Examples:Developusinglocally-trustedTLScertificates:ΓÇóServecurrentfolderΓû╢site(allforms;shorthandtofullsyntax)Γû╢siteserveΓû╢siteserve.Γû╢siteserve."@localhost"Γû╢siteserve."@localhost:443"ΓÇóServefolderdemo(shorthand)Γû╢sitedemoΓÇóServefolderdemoatport666Γû╢siteservedemo"@localhost:666"ΓÇóProxylocalhost:1313Γçähttps://localhostΓû╢site:1313(shorthandandfull)Γû╢siteserve:1313"@localhost:443"ΓÇóSyncdemofoldertomy.siteΓû╢sitedemo--sync-to=my.siteΓÇóDitto,butuseaccountmeonmy.siteΓû╢[email protected]ΓÇóDitto,butsynctoremotefolder~/wwwΓû╢[email protected]:wwwΓÇóDitto,butspecifyabsolutepathΓû╢[email protected]:/home/me/wwwΓÇóLiveSynccurrentfoldertomy.siteΓû╢site--sync-to=my.site--live-syncStageusingglobally-trustedLetΓÇÖsEncryptcertificates:ΓÇóServecurrentfolderΓû╢site"@hostname"ΓÇóServecurrentfolderatspecifieddomainΓû╢site"@hostname"--domain=my.siteΓÇóServecurrentfolderalsoataliasesΓû╢site"@hostname"--aliases=www,other.site,www.other.siteΓÇóServefolderdemoΓû╢sitedemo"@hostname"(shorthandandfull)Γû╢siteservedemo"@hostname"ΓÇóProxylocalhost:1313Γçähttps://hostnameΓû╢siteserve:1313"@hostname"Staticsitegeneration:ΓÇóCreateanewHugositeΓû╢sitehugonewsitedemoGeneral:ΓÇóCheckforupdatesandupdateiffoundΓû╢siteupdateWindows-specificnotes:-UnlikeLinuxandmacOS,youmustusequotationmarksaround@localhostand@hostname.-ProductionuseisnotavailableonWindowsasitrequiresLinuxwithsystemd.Forfurtherinformation,pleaseseehttps://sitejs.org'
actual: |-
'\x1b[4mUsage:\x1b[0m\x1b[34mΓû╢\x1b[0m\x1b[1msite\x1b[0m[\x1b[32mcommand\x1b[0m][\x1b[36mfolder\x1b[0m|\x1b[36m:port\x1b[0m][\x1b[36m"@host[:port]"\x1b[0m][\x1b[33m--options\x1b[0m]\x1b[32mcommand\x1b[0m\x1b[32mserve\x1b[0m|\x1b[32mpull\x1b[0m|\x1b[32mpush\x1b[0m|\x1b[32mupdate\x1b[0m|\x1b[32mhugo\x1b[0m|\x1b[32muninstall\x1b[0m|\x1b[32mversion\x1b[0m|\x1b[32mhelp\x1b[0m\x1b[36mfolder\x1b[0m|\x1b[36m:port\x1b[0mPathoffoldertoserve(defaultstocurrentfolder)orportonlocalhosttoproxy.\x1b[36m"@host[:port]"\x1b[0mHost(and,optionallyport)tosync.Validhostsare@localhostand@hostname.\x1b[33m--options\x1b[0mSettingsthataltercommandbehaviour.\x1b[4mKey:\x1b[0m[]=optional|=or\x1b[34mΓû╢\x1b[0m=commandprompt\x1b[4mCommands:\x1b[0m\x1b[32mserve\x1b[0mServespecified\x1b[36mfolder\x1b[0m(orproxyspecified\x1b[36m:port\x1b[0m)onspecified\x1b[36m"@host"\x1b[0m(at\x1b[36m:port\x1b[0m,ifgiven).Theorderofargumentsis:1.whattoserve,2.wheretoserveit.e.g.,\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36mmy-folder\x1b[0m\x1b[36m"@localhost"\x1b[0mIfaport(e.g.,\x1b[36m:1313\x1b[0m)isspecifiedinsteadof\x1b[36mmy-folder\x1b[0m,startanHTTP/WebSocketproxy.\x1b[32mpull\x1b[0mPull(download)yoursitefromaremoteSmallWebserver.\x1b[32mpush\x1b[0mPush(deploy)yoursitetoaremoteSmallWebserver.\x1b[32mhugo\x1b[0mPassestheremainderofthecommandstringtotheintegratedHugostaticsitegenerator.\x1b[32mupdate\x1b[0mCheckforSite.jsupdatesandupdateifnewversionisfound.\x1b[32muninstall\x1b[0mUninstallSite.js.\x1b[32mversion\x1b[0mDisplayversionandexit.\x1b[32mhelp\x1b[0mDisplaythishelpscreenandexit.If\x1b[32mcommand\x1b[0misomitted,behaviourdefaultsto\x1b[32mserve\x1b[0m.\x1b[4mOptions:\x1b[0mFor\x1b[32mserve\x1b[0mcommand:\x1b[33m--domain\x1b[0mThemaindomaintoserve(defaultstosystemhostnameifnotspecified).\x1b[33m--aliases\x1b[0mAdditionaldomainaliasestoobtainTLScertsfor.Will302redirecttomaindomain.\x1b[33m--skip-domain-reachability-check\x1b[0mDonotrunpre-flightcheckfordomainreachability.\x1b[33m--access-log-errors-only\x1b[0mDisplayonlyerrorsintheaccesslog(HTTPstatuscodes_4xx_and_5xx_).\x1b[33m--access-log-disable\x1b[0mCompletelydisabletheaccesslog.Notevenerrorsarelogged.\x1b[33m--sync-to\x1b[0mThehosttosyncto(othersyncoptionsonlyrelevantifthisissupplied).\x1b[33m--sync-from\x1b[0mThefoldertosyncfrom.\x1b[33m--live-sync\x1b[0mWatchforchangesandlivesyncthemtoaremoteserver.\x1b[33m--sync-folder-and-contents\x1b[0mSynclocalfolderandcontents(defaultistosyncthefolderΓÇÖscontentsonly).Forboth\x1b[32mpull\x1b[0mand\x1b[32mpush\x1b[0mcommands:\x1b[33m--domain\x1b[0mSpecifythedomaintosynctomanually(otherwisederivedfromthefoldername).\x1b[4mExamples:\x1b[0m\x1b[4mDevelopusinglocally-trustedTLScertificates:\x1b[0mΓÇóServecurrentfolder\x1b[34mΓû╢\x1b[0msite\x1b[3m(allforms;shorthandtofullsyntax)\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m.\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m.\x1b[0m\x1b[36m"@localhost"\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m.\x1b[0m\x1b[36m"@localhost:443"\x1b[0mΓÇóServefolder\x1b[36mdemo\x1b[0m\x1b[3m(shorthand)\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0mΓÇóServefolder\x1b[36mdemo\x1b[0matport666\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36mdemo\x1b[0m\x1b[36m"@localhost:666"\x1b[0mΓÇóProxy\x1b[36mlocalhost:1313\x1b[0mΓçähttps://localhost\x1b[34mΓû╢\x1b[0msite\x1b[36m:1313\x1b[0m(shorthandandfull)\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m:1313\x1b[0m\x1b[36m"@localhost:443"\x1b[0mΓÇóSync\x1b[36mdemo\x1b[0mfolderto\x1b[36mmy.site\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[33m--sync-to\x1b[0m=\x1b[36mmy.site\x1b[0mΓÇóDitto,butuseaccount\x1b[36mme\x1b[0mon\x1b[36mmy.site\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[33m--sync-to\x1b[0m=\x1b[[email protected]\x1b[0mΓÇóDitto,butsynctoremotefolder\x1b[36m~/www\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[33m--sync-to\x1b[0m=\x1b[[email protected]:www\x1b[0mΓÇóDitto,butspecifyabsolutepath\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[33m--sync-to\x1b[0m=\x1b[[email protected]:/home/me/www\x1b[0mΓÇóLiveSynccurrentfolderto\x1b[36mmy.site\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[33m--sync-to\x1b[0m=\x1b[36mmy.site\x1b[0m\x1b[33m--live-sync\x1b[0m\x1b[4mStageusingglobally-trustedLetΓÇÖsEncryptcertificates:\x1b[0mΓÇóServecurrentfolder\x1b[34mΓû╢\x1b[0msite\x1b[36m"@hostname"\x1b[0mΓÇóServecurrentfolderatspecifieddomain\x1b[34mΓû╢\x1b[0msite\x1b[36m"@hostname"\x1b[0m\x1b[33m--domain\x1b[0m=\x1b[36mmy.site\x1b[0mΓÇóServecurrentfolderalsoataliases\x1b[34mΓû╢\x1b[0msite\x1b[36m"@hostname"\x1b[0m\x1b[33m--aliases\x1b[0m=\x1b[36mwww,other.site,www.other.site\x1b[0mΓÇóServefolder\x1b[36mdemo\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[36m"@hostname"\x1b[0m(shorthandandfull)\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36mdemo\x1b[0m\x1b[36m"@hostname"\x1b[0mΓÇóProxy\x1b[36mlocalhost:1313\x1b[0mΓçähttps://hostname\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m:1313\x1b[0m\x1b[36m"@hostname"\x1b[0m\x1b[4mStaticsitegeneration:\x1b[0mΓÇóCreateanewHugosite\x1b[34mΓû╢\x1b[0msite\x1b[32mhugo\x1b[0m\x1b[36mnewsitedemo\x1b[0m\x1b[4mGeneral:\x1b[0mΓÇóCheckforupdatesandupdateiffound\x1b[34mΓû╢\x1b[0msite\x1b[32mupdate\x1b[0m\x1b[4mWindows-specificnotes:\x1b[0m-UnlikeLinuxandmacOS,youmustusequotationmarksaround@localhostand@hostname.-ProductionuseisnotavailableonWindowsasitrequiresLinuxwithsystemd.\x1b[3mForfurtherinformation,pleaseseehttps://sitejs.org\x1b[0m'
at: Test.<anonymous> (C:\dev\site.js\test\commands.js:662:5)
stack: |-
Error: Actual help output should match expected output (windows)
at Test.assert [as _assert] (C:\dev\site.js\node_modules\tape\lib\test.js:260:54)
at Test.bound [as _assert] (C:\dev\site.js\node_modules\tape\lib\test.js:84:32)
at Test.strictEqual (C:\dev\site.js\node_modules\tape\lib\test.js:424:10)
at Test.bound [as strictEquals] (C:\dev\site.js\node_modules\tape\lib\test.js:84:32)
at Test.<anonymous> (C:\dev\site.js\test\commands.js:662:5)
at Test.bound [as _cb] (C:\dev\site.js\node_modules\tape\lib\test.js:84:32)
at Test.run (C:\dev\site.js\node_modules\tape\lib\test.js:101:31)
at Test.bound [as run] (C:\dev\site.js\node_modules\tape\lib\test.js:84:32)
at Immediate.next [as _onImmediate] (C:\dev\site.js\node_modules\tape\lib\results.js:85:19)
at processImmediate (internal/timers.js:456:21)
...
not ok 51 Actual help output should match expected output (mac)
---
operator: equal
expected: |-
'Usage:Γû╢site[command][folder|:port][@host[:port]][--options]commandserve|pull|push|update|hugo|uninstall|version|helpfolder|:portPathoffoldertoserve(defaultstocurrentfolder)orportonlocalhosttoproxy.@host[:port]Host(and,optionallyport)tosync.Validhostsare@localhostand@hostname.--optionsSettingsthataltercommandbehaviour.Key:[]=optional|=orΓû╢=commandpromptCommands:serveServespecifiedfolder(orproxyspecified:port)onspecified@host(at:port,ifgiven).Theorderofargumentsis:1.whattoserve,2.wheretoserveit.e.g.,Γû╢siteservemy-folder@localhostIfaport(e.g.,:1313)isspecifiedinsteadofmy-folder,startanHTTP/WebSocketproxy.pullPull(download)yoursitefromaremoteSmallWebserver.pushPush(deploy)yoursitetoaremoteSmallWebserver.hugoPassestheremainderofthecommandstringtotheintegratedHugostaticsitegenerator.updateCheckforSite.jsupdatesandupdateifnewversionisfound.uninstallUninstallSite.js.versionDisplayversionandexit.helpDisplaythishelpscreenandexit.Ifcommandisomitted,behaviourdefaultstoserve.Options:Forservecommand:--domainThemaindomaintoserve(defaultstosystemhostnameifnotspecified).--aliasesAdditionaldomainaliasestoobtainTLScertsfor.Will302redirecttomaindomain.--skip-domain-reachability-checkDonotrunpre-flightcheckfordomainreachability.--access-log-errors-onlyDisplayonlyerrorsintheaccesslog(HTTPstatuscodes_4xx_and_5xx_).--access-log-disableCompletelydisabletheaccesslog.Notevenerrorsarelogged.--sync-toThehosttosyncto(othersyncoptionsonlyrelevantifthisissupplied).--sync-fromThefoldertosyncfrom.--live-syncWatchforchangesandlivesyncthemtoaremoteserver.--sync-folder-and-contentsSynclocalfolderandcontents(defaultistosyncthefolderΓÇÖscontentsonly).Forbothpullandpushcommands:--domainSpecifythedomaintosynctomanually(otherwisederivedfromthefoldername).Examples:Developusinglocally-trustedTLScertificates:ΓÇóServecurrentfolderΓû╢site(allforms;shorthandtofullsyntax)Γû╢siteserveΓû╢siteserve.Γû╢siteserve.@localhostΓû╢siteserve.@localhost:443ΓÇóServefolderdemo(shorthand)Γû╢sitedemoΓÇóServefolderdemoatport666Γû╢siteservedemo@localhost:666ΓÇóProxylocalhost:1313Γçähttps://localhostΓû╢site:1313(shorthandandfull)Γû╢siteserve:1313@localhost:443ΓÇóSyncdemofoldertomy.siteΓû╢sitedemo--sync-to=my.siteΓÇóDitto,butuseaccountmeonmy.siteΓû╢[email protected]ΓÇóDitto,butsynctoremotefolder~/wwwΓû╢[email protected]:wwwΓÇóDitto,butspecifyabsolutepathΓû╢[email protected]:/home/me/wwwΓÇóLiveSynccurrentfoldertomy.siteΓû╢site--sync-to=my.site--live-syncStageusingglobally-trustedLetΓÇÖsEncryptcertificates:ΓÇóServecurrentfolderΓû╢site@hostnameΓÇóServecurrentfolderatspecifieddomainΓû╢site@hostname--domain=my.siteΓÇóServecurrentfolderalsoataliasesΓû╢site@hostname--aliases=www,other.site,www.other.siteΓÇóServefolderdemoΓû╢sitedemo@hostname(shorthandandfull)Γû╢siteservedemo@hostnameΓÇóProxylocalhost:1313Γçähttps://hostnameΓû╢siteserve:1313@hostnameStaticsitegeneration:ΓÇóCreateanewHugositeΓû╢sitehugonewsitedemoGeneral:ΓÇóCheckforupdatesandupdateiffoundΓû╢siteupdateMac-specificnotes:-ProductionuseisnotavailableonmacOSasitrequiresLinuxwithsystemd.Forfurtherinformation,pleaseseehttps://sitejs.org'
actual: |-
'\x1b[4mUsage:\x1b[0m\x1b[34mΓû╢\x1b[0m\x1b[1msite\x1b[0m[\x1b[32mcommand\x1b[0m][\x1b[36mfolder\x1b[0m|\x1b[36m:port\x1b[0m][\x1b[36m@host[:port]\x1b[0m][\x1b[33m--options\x1b[0m]\x1b[32mcommand\x1b[0m\x1b[32mserve\x1b[0m|\x1b[32mpull\x1b[0m|\x1b[32mpush\x1b[0m|\x1b[32mupdate\x1b[0m|\x1b[32mhugo\x1b[0m|\x1b[32muninstall\x1b[0m|\x1b[32mversion\x1b[0m|\x1b[32mhelp\x1b[0m\x1b[36mfolder\x1b[0m|\x1b[36m:port\x1b[0mPathoffoldertoserve(defaultstocurrentfolder)orportonlocalhosttoproxy.\x1b[36m@host[:port]\x1b[0mHost(and,optionallyport)tosync.Validhostsare@localhostand@hostname.\x1b[33m--options\x1b[0mSettingsthataltercommandbehaviour.\x1b[4mKey:\x1b[0m[]=optional|=or\x1b[34mΓû╢\x1b[0m=commandprompt\x1b[4mCommands:\x1b[0m\x1b[32mserve\x1b[0mServespecified\x1b[36mfolder\x1b[0m(orproxyspecified\x1b[36m:port\x1b[0m)onspecified\x1b[36m@host\x1b[0m(at\x1b[36m:port\x1b[0m,ifgiven).Theorderofargumentsis:1.whattoserve,2.wheretoserveit.e.g.,\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36mmy-folder\x1b[0m\x1b[36m@localhost\x1b[0mIfaport(e.g.,\x1b[36m:1313\x1b[0m)isspecifiedinsteadof\x1b[36mmy-folder\x1b[0m,startanHTTP/WebSocketproxy.\x1b[32mpull\x1b[0mPull(download)yoursitefromaremoteSmallWebserver.\x1b[32mpush\x1b[0mPush(deploy)yoursitetoaremoteSmallWebserver.\x1b[32mhugo\x1b[0mPassestheremainderofthecommandstringtotheintegratedHugostaticsitegenerator.\x1b[32mupdate\x1b[0mCheckforSite.jsupdatesandupdateifnewversionisfound.\x1b[32muninstall\x1b[0mUninstallSite.js.\x1b[32mversion\x1b[0mDisplayversionandexit.\x1b[32mhelp\x1b[0mDisplaythishelpscreenandexit.If\x1b[32mcommand\x1b[0misomitted,behaviourdefaultsto\x1b[32mserve\x1b[0m.\x1b[4mOptions:\x1b[0mFor\x1b[32mserve\x1b[0mcommand:\x1b[33m--domain\x1b[0mThemaindomaintoserve(defaultstosystemhostnameifnotspecified).\x1b[33m--aliases\x1b[0mAdditionaldomainaliasestoobtainTLScertsfor.Will302redirecttomaindomain.\x1b[33m--skip-domain-reachability-check\x1b[0mDonotrunpre-flightcheckfordomainreachability.\x1b[33m--access-log-errors-only\x1b[0mDisplayonlyerrorsintheaccesslog(HTTPstatuscodes_4xx_and_5xx_).\x1b[33m--access-log-disable\x1b[0mCompletelydisabletheaccesslog.Notevenerrorsarelogged.\x1b[33m--sync-to\x1b[0mThehosttosyncto(othersyncoptionsonlyrelevantifthisissupplied).\x1b[33m--sync-from\x1b[0mThefoldertosyncfrom.\x1b[33m--live-sync\x1b[0mWatchforchangesandlivesyncthemtoaremoteserver.\x1b[33m--sync-folder-and-contents\x1b[0mSynclocalfolderandcontents(defaultistosyncthefolderΓÇÖscontentsonly).Forboth\x1b[32mpull\x1b[0mand\x1b[32mpush\x1b[0mcommands:\x1b[33m--domain\x1b[0mSpecifythedomaintosynctomanually(otherwisederivedfromthefoldername).\x1b[4mExamples:\x1b[0m\x1b[4mDevelopusinglocally-trustedTLScertificates:\x1b[0mΓÇóServecurrentfolder\x1b[34mΓû╢\x1b[0msite\x1b[3m(allforms;shorthandtofullsyntax)\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m.\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m.\x1b[0m\x1b[36m@localhost\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m.\x1b[0m\x1b[36m@localhost:443\x1b[0mΓÇóServefolder\x1b[36mdemo\x1b[0m\x1b[3m(shorthand)\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0mΓÇóServefolder\x1b[36mdemo\x1b[0matport666\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36mdemo\x1b[0m\x1b[36m@localhost:666\x1b[0mΓÇóProxy\x1b[36mlocalhost:1313\x1b[0mΓçähttps://localhost\x1b[34mΓû╢\x1b[0msite\x1b[36m:1313\x1b[0m(shorthandandfull)\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m:1313\x1b[0m\x1b[36m@localhost:443\x1b[0mΓÇóSync\x1b[36mdemo\x1b[0mfolderto\x1b[36mmy.site\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[33m--sync-to\x1b[0m=\x1b[36mmy.site\x1b[0mΓÇóDitto,butuseaccount\x1b[36mme\x1b[0mon\x1b[36mmy.site\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[33m--sync-to\x1b[0m=\x1b[[email protected]\x1b[0mΓÇóDitto,butsynctoremotefolder\x1b[36m~/www\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[33m--sync-to\x1b[0m=\x1b[[email protected]:www\x1b[0mΓÇóDitto,butspecifyabsolutepath\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[33m--sync-to\x1b[0m=\x1b[[email protected]:/home/me/www\x1b[0mΓÇóLiveSynccurrentfolderto\x1b[36mmy.site\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[33m--sync-to\x1b[0m=\x1b[36mmy.site\x1b[0m\x1b[33m--live-sync\x1b[0m\x1b[4mStageusingglobally-trustedLetΓÇÖsEncryptcertificates:\x1b[0mΓÇóServecurrentfolder\x1b[34mΓû╢\x1b[0msite\x1b[36m@hostname\x1b[0mΓÇóServecurrentfolderatspecifieddomain\x1b[34mΓû╢\x1b[0msite\x1b[36m@hostname\x1b[0m\x1b[33m--domain\x1b[0m=\x1b[36mmy.site\x1b[0mΓÇóServecurrentfolderalsoataliases\x1b[34mΓû╢\x1b[0msite\x1b[36m@hostname\x1b[0m\x1b[33m--aliases\x1b[0m=\x1b[36mwww,other.site,www.other.site\x1b[0mΓÇóServefolder\x1b[36mdemo\x1b[0m\x1b[34mΓû╢\x1b[0msite\x1b[36mdemo\x1b[0m\x1b[36m@hostname\x1b[0m(shorthandandfull)\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36mdemo\x1b[0m\x1b[36m@hostname\x1b[0mΓÇóProxy\x1b[36mlocalhost:1313\x1b[0mΓçähttps://hostname\x1b[34mΓû╢\x1b[0msite\x1b[32mserve\x1b[0m\x1b[36m:1313\x1b[0m\x1b[36m@hostname\x1b[0m\x1b[4mStaticsitegeneration:\x1b[0mΓÇóCreateanewHugosite\x1b[34mΓû╢\x1b[0msite\x1b[32mhugo\x1b[0m\x1b[36mnewsitedemo\x1b[0m\x1b[4mGeneral:\x1b[0mΓÇóCheckforupdatesandupdateiffound\x1b[34mΓû╢\x1b[0msite\x1b[32mupdate\x1b[0m\x1b[4mMac-specificnotes:\x1b[0m-ProductionuseisnotavailableonmacOSasitrequiresLinuxwithsystemd.\x1b[3mForfurtherinformation,pleaseseehttps://sitejs.org\x1b[0m'
at: Test.<anonymous> (C:\dev\site.js\test\commands.js:749:5)
stack: |-
Error: Actual help output should match expected output (mac)
at Test.assert [as _assert] (C:\dev\site.js\node_modules\tape\lib\test.js:260:54)
at Test.bound [as _assert] (C:\dev\site.js\node_modules\tape\lib\test.js:84:32)
at Test.strictEqual (C:\dev\site.js\node_modules\tape\lib\test.js:424:10)
at Test.bound [as strictEquals] (C:\dev\site.js\node_modules\tape\lib\test.js:84:32)
at Test.<anonymous> (C:\dev\site.js\test\commands.js:749:5)
at Test.bound [as _cb] (C:\dev\site.js\node_modules\tape\lib\test.js:84:32)
at Test.run (C:\dev\site.js\node_modules\tape\lib\test.js:101:31)
at Test.bound [as run] (C:\dev\site.js\node_modules\tape\lib\test.js:84:32)
at Immediate.next [as _onImmediate] (C:\dev\site.js\node_modules\tape\lib\results.js:85:19)
at processImmediate (internal/timers.js:456:21)
...
# [commands] hugo
ok 52 hugo command output includes Site.js information line
ok 53 hugo command output includes correct hugo version
ok 54 hugo commands exits as expected
# [commands] logs
# [site.js] constructor
npm ERR! Test failed. See above for more details.
PS C:\dev\site.js>
The text was updated successfully, but these errors were encountered:
PS C:\Users\JonD\sitejs> site
site : The term 'site' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ site
+ ~~~~
+ CategoryInfo : ObjectNotFound: (site:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Typing site did not work for me, it always opened site.js in an editor instead. And this is a .sh shell script (.js opens in my default code editor, so it might also be my configuration at fault!). I need to write site.js.cmd instead of site or site.js.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Overview
I remember this used to be a thing I would encounter on the mac with case sensitive / insensitive file systems.
( I have no idea what my current set up is )
Detail
installing seems to go okay, unsure if there is a log of what the install script thought.
Creating a site and attempting to run for the first time.
I can't remember why I tried this, but it gets further.
Some of the tests are failing for me, I removed the pretty printing as it was hiding the errors of the tests.
The text was updated successfully, but these errors were encountered: