Upgrade tempmon database when updating production demo
This commit is contained in:
		
							parent
							
								
									ed1cc301a3
								
							
						
					
					
						commit
						b9021afd96
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		
							
								
								
									
										2
									
								
								fabfile.py
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								fabfile.py
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -54,6 +54,8 @@ def update_production(all='false'):
 | 
				
			||||||
            sudo('pip install --editable .')
 | 
					            sudo('pip install --editable .')
 | 
				
			||||||
    with cd('/srv/envs/demo'):
 | 
					    with cd('/srv/envs/demo'):
 | 
				
			||||||
        sudo('bin/alembic --config=app/rattail.conf upgrade heads', user='rattail')
 | 
					        sudo('bin/alembic --config=app/rattail.conf upgrade heads', user='rattail')
 | 
				
			||||||
 | 
					    with cd('/srv/envs/demo'):
 | 
				
			||||||
 | 
					        sudo('bin/alembic --config=app/tempmon.conf upgrade heads', user='rattail')
 | 
				
			||||||
    sudo('service apache2 restart')
 | 
					    sudo('service apache2 restart')
 | 
				
			||||||
    run('curl --output demo.html https://rattailproject.org/demo/')
 | 
					    run('curl --output demo.html https://rattailproject.org/demo/')
 | 
				
			||||||
    run('rm demo.html')
 | 
					    run('rm demo.html')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue