Skip to content

Instantly share code, notes, and snippets.

@a1300
Last active July 27, 2018 23:04
Show Gist options
  • Save a1300/50ec790bf3ba2f6a7998e0745a2a84b4 to your computer and use it in GitHub Desktop.
Save a1300/50ec790bf3ba2f6a7998e0745a2a84b4 to your computer and use it in GitHub Desktop.
Recreate asch directory easily

Recreate asch directory easily

1. Make clean asch install

execute: (from asch)

git clone https://github.com/AschPlatform/asch && cd asch && chmod u+x aschd && npm install

Build frontend

# change directory
cd public

# install dependencies
npm install

# build frontend
gulp build-frontend

2. Zip Fresh installed Asch Directory

execute:

chmod u+x zip-asch.sh

./zip-asch.sh

3. Unzip Asch .zip Archive if you need a fresh Asch Blockchain

THIS step can be done as often as you want

execute recreate-asch-dir.sh:

# prepare
chmod u+x recreate-asch-dir.sh

./recreate-asch-dir.sh
#!/bin/bash
# delete asch directory
rm -rf asch
# quiet unzip backup file
unzip -q backup-asch.zip -d ./
#!/bin/bash
echo "deleting 'backup-asch.zip' file"
rm backup-asch.zip
echo "zipping asch/ directory"
zip -r backup-asch.zip asch
@bassjobsen
Copy link

bassjobsen commented Jul 27, 2018

@a1300. Thank you very much. I wonder if the gulp build-frontend command is right? The gulpfile.js contains three options to build the front-end; build-test (beta), build-main and build-local. Maybe you did mean build-local instead of 'build-frontend`.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment