forked from OpenWF/SpaceNinjaServer
		
	feat: add update and start script for dummies (#828)
This commit is contained in:
		
							parent
							
								
									62a4ac0652
								
							
						
					
					
						commit
						3eab0c187c
					
				
							
								
								
									
										22
									
								
								UPDATE AND START SERVER.bat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								UPDATE AND START SERVER.bat
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,22 @@
 | 
				
			|||||||
 | 
					@echo off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					echo Updating SpaceNinjaServer...
 | 
				
			||||||
 | 
					git pull
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if exist static\data\0\ (
 | 
				
			||||||
 | 
						echo Updating stripped assets...
 | 
				
			||||||
 | 
						cd static\data\0\
 | 
				
			||||||
 | 
						git pull
 | 
				
			||||||
 | 
						cd ..\..\..\
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					echo Updating dependencies...
 | 
				
			||||||
 | 
					call npm i
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					call npm run build
 | 
				
			||||||
 | 
					call npm run start
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					echo SpaceNinjaServer seems to have crashed.
 | 
				
			||||||
 | 
					:a
 | 
				
			||||||
 | 
					pause > nul
 | 
				
			||||||
 | 
					goto a
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user