Echo error output to stderr when restoring postgres db
apparently one can run out of disk space and never know it, with default output
This commit is contained in:
		
							parent
							
								
									167140dce1
								
							
						
					
					
						commit
						440130439e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -191,5 +191,5 @@ def clone_db(name, owner, download, user='rattail', force=False, workdir=None): | ||||||
| 
 | 
 | ||||||
|     # restore database on target server |     # restore database on target server | ||||||
|     run('gunzip --force {}.sql.gz'.format(name)) |     run('gunzip --force {}.sql.gz'.format(name)) | ||||||
|     sudo('sudo -u postgres psql --file={0}.sql {0}'.format(name), shell=False) |     sudo('sudo -u postgres psql --echo-errors --file={0}.sql {0}'.format(name), shell=False) | ||||||
|     run('rm {}.sql'.format(name)) |     run('rm {}.sql'.format(name)) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar