forked from MapComplete/MapComplete
		
	Deployment: improve deployment script
This commit is contained in:
		
							parent
							
								
									1c0c44f2f8
								
							
						
					
					
						commit
						df88fd2f71
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -10,6 +10,8 @@ | |||
| # unzip tiles.zip | ||||
| 
 | ||||
| MAPCOMPLETE_CONFIGURATION="config_hetzner" | ||||
| npm run reset:layeroverview | ||||
| npm run test | ||||
| cp config.json config.json.bu && | ||||
| cp ./scripts/hetzner/config.json . && | ||||
| npm run prepare-deploy && | ||||
|  | @ -17,4 +19,5 @@ mv config.json.bu config.json && | |||
| zip dist.zip -r dist/* && | ||||
| scp -r dist.zip hetzner:/root/ && | ||||
| scp ./scripts/hetzner/config/* hetzner:/root/ | ||||
| ssh hetzner -t "unzip dist.zip && rm dist.zip && rm -rf public/ mv dist public && caddy stop && caddy start" | ||||
| ssh hetzner -t "unzip dist.zip && rm dist.zip && rm -rf public/ && mv dist public && caddy stop && caddy start" | ||||
| rm dist.zip | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue