Skip to content
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

Need better instructions to install ZeroBlog. Currently ZeroBlog doesn't install from git. #24

Open
yurivict opened this issue Jun 7, 2016 · 2 comments

Comments

@yurivict
Copy link

yurivict commented Jun 7, 2016

Your instructions ask to clone the 1BLog... site. But users should be able to install from git too, because that's how software is usually installed. There are also problems in instructions like there is no file default.json-default that instructions mention.

I am trying to write a script to clone from git, but it fails for unclear reason. zeronet siteSign skips data/users/content.json for some reason.

cd data/{your-new-site}
git clone https://github.com/HelloZeroNet/ZeroBlog.git &&
mv ZeroBlog/* . &&
rm -rf ZeroBlog &&
mv data-default data &&
mv data/users/content-default.json data/users/content.json
perl -pi -e "s/1BLogC9LN4oPDcruNz3qo1ysa133E9AGg8/`pwd | sed -e 's/.*\///g'`/g" content.json &&
perl -pi -e "s/\"domain.*//g" content.json &&
perl -pi -e "s/\"files\": \{\},/\"files\": {}, \"inner_path\": \"data\/users\/content.json\",/g" data/users/content.json

I think you need to make instructions to create a new blog easier, and they should start from "git clone". It is best to have a script cloning the github repository. You probably also want to remove "domain": "Blog.ZeroNetwork.bit" from contents.json because only you own it, and most people probably will not register a domain.

@HelloZeroNet
Copy link
Owner

HelloZeroNet commented Jun 7, 2016

you have to sign the other content.json file using zeronet.py siteSign address --inner_path data/users/content.json after that it should work.

but if you use the built-in clone feature it will do that for you and its also removing the domain entry

@yurivict
Copy link
Author

yurivict commented Jun 7, 2016

Yes, zeronet.py siteSign {address} --inner_path data/users/content.json was missing.

So it would be great if ZeroBlog page had accurate instructions including that one command. I think siteSign should also replace "address" in content.json, and instructions should look like this:

cd data/{your-new-site}
git clone https://github.com/HelloZeroNet/ZeroBlog.git &&
mv ZeroBlog/* . &&
rm -rf ZeroBlog &&
mv data-default data &&
mv data/users/content-default.json data/users/content.json &&
ADDR=`pwd | sed -e 's/.*\///g'` &&
zeronet siteSign $ADDR &&
zeronet siteSign $ADDR --inner_path data/users/content.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants