forked from ghostchain/ghost-node
		
	prepare starter script for the production
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
		
							parent
							
								
									72d6be6e29
								
							
						
					
					
						commit
						9240f424e1
					
				@ -229,6 +229,7 @@ if [[ $HARD_RESET = true ]]; then
 | 
				
			|||||||
    sudo rm -rf "$BASE_PATH/chains/casper_staging_testnet"
 | 
					    sudo rm -rf "$BASE_PATH/chains/casper_staging_testnet"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    cd $PROJECT_FOLDER
 | 
					    cd $PROJECT_FOLDER
 | 
				
			||||||
 | 
					    git pull origin main
 | 
				
			||||||
    echo "[+] starting build in 3 seconds..."
 | 
					    echo "[+] starting build in 3 seconds..."
 | 
				
			||||||
    sleep 3
 | 
					    sleep 3
 | 
				
			||||||
    cargo build --release
 | 
					    cargo build --release
 | 
				
			||||||
@ -244,9 +245,8 @@ if [[ $HARD_RESET = true ]]; then
 | 
				
			|||||||
    echo "[+] ghost executable copied in '$EXECUTABLE_PATH' from '$TARGET'"
 | 
					    echo "[+] ghost executable copied in '$EXECUTABLE_PATH' from '$TARGET'"
 | 
				
			||||||
    echo "[+] specification '$SPECIFICATION_NAME.json' copied to '$SPECIFICATION_PATH'"
 | 
					    echo "[+] specification '$SPECIFICATION_NAME.json' copied to '$SPECIFICATION_PATH'"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # TODO: uncomment later
 | 
					    echo "[+] starting ghost-node"
 | 
				
			||||||
    # echo "[+] starting ghost-node"
 | 
					    sudo systemctl start ghost-node
 | 
				
			||||||
    # sudo systemctl start ghost-node
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    exit 0
 | 
					    exit 0
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user