Always run "npm install" when upgrading, only build mainnet frontend
This commit is contained in:
		
							parent
							
								
									68664968da
								
							
						
					
					
						commit
						c732f2d423
					
				@ -11,10 +11,17 @@ do
 | 
				
			|||||||
    cd "$HOME/${site}"
 | 
					    cd "$HOME/${site}"
 | 
				
			||||||
    git pull origin master
 | 
					    git pull origin master
 | 
				
			||||||
    hash=$(git rev-parse HEAD)
 | 
					    hash=$(git rev-parse HEAD)
 | 
				
			||||||
    cd "$HOME/${site}/frontend"
 | 
					
 | 
				
			||||||
    npm run build
 | 
					    if [ "${site}" = "mainnet" ]
 | 
				
			||||||
    rsync -av ./dist/mempool/* "${HOME}/public_html/${site}/"
 | 
					    then
 | 
				
			||||||
 | 
						    cd "$HOME/${site}/frontend"
 | 
				
			||||||
 | 
						    npm install
 | 
				
			||||||
 | 
						    npm run build
 | 
				
			||||||
 | 
						    rsync -av ./dist/mempool/* "${HOME}/public_html/${site}/"
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    cd "$HOME/${site}/backend"
 | 
					    cd "$HOME/${site}/backend"
 | 
				
			||||||
 | 
					    npm install
 | 
				
			||||||
    npm run build
 | 
					    npm run build
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user