-
Notifications
You must be signed in to change notification settings - Fork 5
Deployment of Explorer to staging server
Jens Krause edited this page May 26, 2017
·
6 revisions
- We login to the
cardano-deployer
. - We go to the scripts folder.
- We run the script found here https://github.com/ksaric/iohk-nixops/blob/master/scripts/deploy-explorer-linux.sh with the commit hash.
Example:
ssh [email protected]
cd ~/devops-86-deploy-staging-explorer/scripts/
./deploy-explorer-linux.sh e87276f9d794029cc77ddaddd05c4c570989cc67
- Login to
cardano-deployer
as described above. cd ~/devops-86-deploy-staging-explorer/pkg
- Open
generate.sh
to update dependencies - Execute
generate.sh
- Deploy
cardano-deployer
as described above.
- We login to the
cardano-deployer
. - From
cardano-deployer
we need to ssh into thesl-explorer
machine whereexplorer
is deployed. Right, it's not deployed oncardano-deployer
. - Find the logs you are interested in (
node.log
). - Exit from the
sl-explorer
machine, we need to copy the logs tocardano-deployer
. - Copy the interesting logs.
- Exit from the
cardano-deployer
machine and copy it locally.
Example (I'm guessing you don't have /home/ksaric/Downloads/explorer-node.log
as a path):
ssh [email protected]
nixops ssh -d devops-86 sl-explorer
cd /var/lib/cardano-node/
ls -la
exit
nixops scp -d devops-86 --from sl-explorer /var/lib/cardano-node/node.log /home/staging/devops-86-deploy-staging-explorer/explorer-node.log
exit
scp [email protected]:/home/staging/devops-86-deploy-staging-explorer/explorer-node.log /home/ksaric/Downloads/explorer-node.log
- Run it.
- Check logs.
socket-io-.log
should be in your rootcardano-sl-explorer
, and the node log should be incardano-sl/logs/...
.
- Open any page of Explorer in your browser.
- Open the developers console.
- To enable logs call
localStorage.debug = '*';
from console. To disable logs calllocalStorage.debug = false;
(see https://socket.io/docs/logging-and-debugging/)