database on deploy
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Build and test backend / Build-backend (pull_request) Successful in 1m41s
				
			
		
			
				
	
				Build and test backend / Test-backend (pull_request) Successful in 1m43s
				
			
		
			
				
	
				Build and test FrontEnd / Build-frontend (pull_request) Successful in 24s
				
			
		
			
				
	
				Build and test FrontEnd / Test-frontend (pull_request) Successful in 22s
				
			
		
			
				
	
				Build and test backend / Build-backend (push) Successful in 1m52s
				
			
		
			
				
	
				Build and test backend / Test-backend (push) Successful in 1m20s
				
			
		
			
				
	
				deploy to production / deploy-frontend (push) Successful in 24s
				
			
		
			
				
	
				deploy to production / deploy-backend (push) Failing after 2m0s
				
			
		
			
				
	
				Build and test FrontEnd / Build-frontend (push) Successful in 23s
				
			
		
			
				
	
				Build and test FrontEnd / Test-frontend (push) Successful in 22s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Build and test backend / Build-backend (pull_request) Successful in 1m41s
				
			Build and test backend / Test-backend (pull_request) Successful in 1m43s
				
			Build and test FrontEnd / Build-frontend (pull_request) Successful in 24s
				
			Build and test FrontEnd / Test-frontend (pull_request) Successful in 22s
				
			Build and test backend / Build-backend (push) Successful in 1m52s
				
			Build and test backend / Test-backend (push) Successful in 1m20s
				
			deploy to production / deploy-frontend (push) Successful in 24s
				
			deploy to production / deploy-backend (push) Failing after 2m0s
				
			Build and test FrontEnd / Build-frontend (push) Successful in 23s
				
			Build and test FrontEnd / Test-frontend (push) Successful in 22s
				
			This commit is contained in:
		@ -4,6 +4,7 @@ import javax.sql.DataSource;
 | 
			
		||||
 | 
			
		||||
import org.springframework.context.annotation.Bean;
 | 
			
		||||
import org.springframework.context.annotation.Configuration;
 | 
			
		||||
import org.springframework.context.annotation.Profile;
 | 
			
		||||
import org.springframework.jdbc.datasource.DriverManagerDataSource;
 | 
			
		||||
import org.springframework.web.servlet.config.annotation.CorsRegistry;
 | 
			
		||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
 | 
			
		||||
@ -12,6 +13,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
 | 
			
		||||
public class JdbcConfig {
 | 
			
		||||
 | 
			
		||||
	@Bean
 | 
			
		||||
	@Profile("!prod")
 | 
			
		||||
	public DataSource psqlSource(){
 | 
			
		||||
		DriverManagerDataSource source = new DriverManagerDataSource();
 | 
			
		||||
		source.setDriverClassName("org.postgresql.Driver");
 | 
			
		||||
@ -22,6 +24,17 @@ public class JdbcConfig {
 | 
			
		||||
		return source;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	@Bean
 | 
			
		||||
	@Profile("prod")
 | 
			
		||||
	public DataSource psqlSourceProd(){
 | 
			
		||||
		DriverManagerDataSource source = new DriverManagerDataSource();
 | 
			
		||||
		source.setDriverClassName("org.postgresql.Driver");
 | 
			
		||||
		source.setUrl("jdbc:postgresql://localhost:5432/clyde");
 | 
			
		||||
		source.setUsername("clyde");
 | 
			
		||||
 | 
			
		||||
		return source;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	@Bean
 | 
			
		||||
	public WebMvcConfigurer corsConfigurer() {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user