-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Racket / Frog #22
Comments
For static sites (like Racket) that deploy to the project root, EVERYTHING becomes part of the IPFS add, so will also need :
ipfs/kubo@759d3c1
|
Maybe the way to go is run the command from the parent of SITEROOT. In my case: : sites/racket/frog/exospheric $ mv .env ../exospheric.env
cd ..
: sites/racket/frog $ ipd -e exospheric.env -p pinata exospheric/ basically because it seems your code is already set up to take a doc root name parameter. I assume there could be more than one site in parent, thus more than one set of env files (different credentials for each site), thus the necessity for unique env file names, thus the need for an -e (environment) path switch. I have to say, I don't understand how ipd knows the site has already been added to IPFS, or what its last CID is. |
Nice catch on The usecase of separating credentials from the site root can be achieved with #25. Until then, you can try using a bash script like this: #!/bin/sh
export $(egrep -v '^#' exospheric.env | xargs) && ipd -p pinata exospheric/ Still, it should be possible to call |
I'm not sure what you mean here. By "the last CID" you mean the one that just got deployed, or the one before that? |
I do this from SITEROOT: $ ipfs add -r . | tail -1 | cut -f2 -d ' ' | xargs ipfs name publish -ttl=1008h This adds the whole site root (source, assets, and generated content) to IPFS, taking the content id of the site root folder and pubishes it to my PEERID for IPNS. |
NOTE: Racket sites output to the project root, and not in a production root subfolder of the project root. In other words, project root and production document root are one and the same.
Some details of the experience:
https://js.ipfs.io/ipns/QmZJBQBXX98AuTcoR1HBGdbe5Gph74ZBWSgNemBcqPNv1W/Zero-Config-CLI-to-Deploy-Static-Websites-to-IPFS.html
The text was updated successfully, but these errors were encountered: