forked from MapComplete/MapComplete
		
	CI: add extra config file for easier per-deployment veriations, add hetzner deploy script
This commit is contained in:
		
							parent
							
								
									9d149cae30
								
							
						
					
					
						commit
						fe3ccd1074
					
				
					 5 changed files with 40 additions and 12 deletions
				
			
		
							
								
								
									
										4
									
								
								scripts/hetzner/config.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								scripts/hetzner/config.json
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,4 @@ | |||
| { | ||||
|   "#":"Some configuration tweaks specifically for hetzner", | ||||
|   "country_coder_host": "https://countrycoder.mapcomplete.org/" | ||||
| } | ||||
							
								
								
									
										20
									
								
								scripts/hetzner/deployHetzner.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										20
									
								
								scripts/hetzner/deployHetzner.sh
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,20 @@ | |||
| #! /bin/bash | ||||
| ### To be run from the root of the repository  | ||||
| 
 | ||||
| # Some pointers to get started: | ||||
| # apt install npm | ||||
| # apt install unzip | ||||
| # npm i -g csp-logger | ||||
| 
 | ||||
| # wget https://github.com/pietervdvn/latlon2country/raw/main/tiles.zip | ||||
| # unzip tiles.zip | ||||
| 
 | ||||
| MAPCOMPLETE_CONFIGURATION="config_hetzner" | ||||
| cp config.json config.json.bu && | ||||
| cp ./scripts/hetzner/config.json . && | ||||
| npm run prepare-deploy && | ||||
| 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" | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue