Skip to content

Instantly share code, notes, and snippets.

@AGx10k
Last active November 6, 2019 21:20
Show Gist options
  • Save AGx10k/e889d974cd4ca19088f87198d7ebdbbc to your computer and use it in GitHub Desktop.
Save AGx10k/e889d974cd4ca19088f87198d7ebdbbc to your computer and use it in GitHub Desktop.
noia cli debian
  1. выполняем эти команды:
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get install -y gcc g++ make git nodejs
export NOIA_WORKING_DIR="/root/noia-node-cli" && git clone https://github.com/noia-network/noia-node-cli.git ${NOIA_WORKING_DIR}
cd ${NOIA_WORKING_DIR}
npm install
npm audit fix
npm run build

npm install -g --unsafe-perms

в команде указать адрес для токенов:

NOIA_NODE_BLOCKCHAIN_AIRDROP_ADDRESS=АДРЕСНАКОТОРЫЙПРОЙДЕНKYC noia-node-cli  --masterAddress wss://csl-masters.noia.network:5565  --storageSize 1073741824 --ws true --wrtcControlPort "8048" --wrtcDataPort "8058"

ctrl-c через 20 секунд. конфиг записался

создаём файл /etc/systemd/system/noia-node.service

[Unit]
Description=NOIA Node

[Service]
# If script is installed locally, set its location.
ExecStart=/usr/bin/npm start
Restart=always
User=root
Group=root
Environment=NODE_ENV=production
# Set working directory.
WorkingDirectory=/root/noia-node-cli


[Install]
WantedBy=multi-user.target

читаем новый сервис

systemctl daemon-reload

запускаем

systemctl start noia-node

посмотреть лог:

journalctl -u noia-node -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment