瀏覽代碼

Merge pull request #3 from xt0fer/heroku-pg

Heroku pg
KrYounger 6 年之前
父節點
當前提交
ed175e1482
沒有帳戶連結到提交者的電子郵件
共有 4 個文件被更改,包括 10 次插入8 次删除
  1. 1
    0
      Procfile
  2. 0
    0
      application.properties
  3. 8
    7
      pom.xml
  4. 1
    1
      src/main/java/com/example/throwupthursday/ThrowupThursdayApplication.java

+ 1
- 0
Procfile 查看文件

@@ -0,0 +1 @@
1
+web: java -Dserver.port=$PORT $JAVA_OPTS -jar target/throwup-thursday-0.0.1-SNAPSHOT.jar

+ 0
- 0
application.properties 查看文件


+ 8
- 7
pom.xml 查看文件

@@ -30,10 +30,6 @@
30 30
 			<artifactId>spring-boot-starter-data-jpa</artifactId>
31 31
 		</dependency>
32 32
 		<dependency>
33
-			<groupId>mysql</groupId>
34
-			<artifactId>mysql-connector-java</artifactId>
35
-		</dependency>
36
-		<dependency>
37 33
 			<groupId>org.springframework.boot</groupId>
38 34
 			<artifactId>spring-boot-starter-data-rest</artifactId>
39 35
 		</dependency>
@@ -51,15 +47,20 @@
51 47
 		</dependency>
52 48
 
53 49
 		<dependency>
54
-			<groupId>org.hsqldb</groupId>
55
-			<artifactId>hsqldb</artifactId>
56
-			<scope>runtime</scope>
50
+			<groupId>org.postgresql</groupId>
51
+			<artifactId>postgresql</artifactId>
57 52
 		</dependency>
58 53
 		<dependency>
59 54
 			<groupId>org.springframework.boot</groupId>
60 55
 			<artifactId>spring-boot-starter-test</artifactId>
61 56
 			<scope>test</scope>
62 57
 		</dependency>
58
+		<dependency>
59
+			<groupId>org.springframework.boot</groupId>
60
+			<artifactId>spring-boot-starter-jdbc</artifactId>
61
+		</dependency>
62
+
63
+
63 64
 	</dependencies>
64 65
 
65 66
 	<build>

+ 1
- 1
src/main/java/com/example/throwupthursday/ThrowupThursdayApplication.java 查看文件

@@ -3,7 +3,7 @@ package com.example.throwupthursday;
3 3
 import org.springframework.boot.SpringApplication;
4 4
 import org.springframework.boot.autoconfigure.SpringBootApplication;
5 5
 
6
-//
6
+// simple,simple, simple.
7 7
 
8 8
 @SpringBootApplication
9 9
 public class ThrowupThursdayApplication {