pcmacdon / pdq Goto Github PK
View Code? Open in Web Editor NEWSingle-file CMS using fossil and jsish
Single-file CMS using fossil and jsish
Environment: Win10 with Windows Subsystem for Linux v2 (WSL2) running Arch Linux:
[matt@geolaptop mypdq]$ jsish -m sclone
current directory is not within an open checkout
clone https://jsish.org/afossil/pdq mypdq.fossil
Long pause, nothing happenng. Pressed enter.
SSL cert declined
server returned an error - clone aborted
CALL BACKTRACE:
#1: Manage.jsi:348: in moduleRun( "sclone" )
#2: Manage.jsi:345: in Manage( [ "sclone" ], {} )
#3: Jsish.jsi:344: in Jsi_CmdTable( [ "sclone" ], { createmod:[ "function createmod(fn:string, tmpname:string=\"Mo ...)
#4: Manage.jsi:80: in sclone()
#5: Manage.jsi:141: in fossil( "clone https://jsish.org/afossil/pdq mypdq.fossil" )
/zvfs/lib/Manage.jsi:141: error: program exit code (1)
ERROR:
After much flailing about ran fossil clone https://jsish.org/afossil/pdq mypdq.fossil
manually and realized the long pause is due to hidden prompts, the default to which are No. There are 3 such prompts. I can't get a record of them now as my machine has cached them, but they are along the lines of
So running again and this time pressing Y-Enter
for each pause:
jsish -m sclone
current directory is not within an open checkout
clone https://jsish.org/afossil/pdq code.fossil
Round-trips: 2 Artifacts sent: 0 received: 108
Clone done, wire bytes sent: 535 received: 3497792 ip: 50.116.0.90
Rebuilding repository meta-data...
100.0% complete...
Extra delta compression...
Vacuuming the database...
project-id: 5b7e1585db8601042a0bf504a57c9a799ac8a12f
server-id: 4d471f06a9a4518e4b17e5abd510169d34d0d101
admin-user: matt (password is "adIUsjkbdi")
y
y
Autosync failed.
y
DONE! To finish setup run: "jsish ."
After this jsish .
is successful. (Sort of. there are problems with wsl<->windows network filtering, not PDQ's problem. I'll write up more on that somewhere else later once I've learned more.)
Install report on Dreamhost.com.
I have jsi symlinked to jsish binary.
[thomas-lynch-jr] $ uname -a
Linux thomas-lynch-jr 4.14.117-grsec-grsec+ #1 SMP Sat May 11 00:40:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
[thomas-lynch-jr]$ mkdir pdq && cd pdq
[thomas-lynch-jr]$ jsi -m sclone
current directory is not within an open checkout
clone https://jsish.org/afossil/pdq pdq.fossil
Round-trips: 2 Artifacts sent: 0 received: 117
Clone done, wire bytes sent: 538 received: 3500564 ip: 50.116.0.90
Rebuilding repository meta-data...
100.0% complete...
Extra delta compression...
Vacuuming the database...
project-id: 5b7e1585db8601042a0bf504a57c9a799ac8a12f
server-id: 121281c49c09e5189c1c611a2061e5cbe74bfd1d
admin-user: dh_user (password is "Q******8c")
Autosync failed.
y
DONE! To finish setup run: "jsish ."
Note here I had to answer Y
to the blind SSL prompt, as before in Windows WSL.
[thomas-lynch-jr]$ jsi .
FAI /var/www/fossil/pdq-plugins.fossil
pdq.jsi:683: "INFO: Project == PDQ and not created with: "jsish -m sclone"", main()
ccc { histmode:false, home:"/admin", noBreak:false }
Pdq started: file=index.html, port=43339
At this point links
text browser is launched automatically in the bash console but doesn't appear to be usable.
Pointing a browser from my desktop at my-domain.dreamhosters.com/pdq
shows web pages but there doesn't appear to be any live content.
Using my-domain.dreamhosters.com:43339/pdq
instead times out with no connection.
When fossil is not available the following error occurs for jsish -m sclone
CALL BACKTRACE:
#1: Manage.jsi:348: in moduleRun( "sclone" )
#2: Manage.jsi:345: in Manage( [ "sclone" ], {} )
#3: Jsish.jsi:344: in Jsi_CmdTable( [ "sclone" ], { createmod:[ "function createmod(fn:string, tmpname:string=\"Mo ...)
#4: Manage.jsi:46: in sclone()
/zvfs/lib/Manage.jsi:46: error: program exit code (1)
ERROR:
Install fossil and everything is fine.
Linux vm-kubuntu 5.4.0-86-generic #97-Ubuntu SMP Fri Sep 17 19:19:40 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.