Skip to content

Commit

Permalink
Removed un-necessary experimentations for heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
dilipkrish committed Mar 15, 2017
1 parent f278e4a commit 5e68d4f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 40 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: cd build ; java $JAVA_OPTS -Xmx256m -Dgrails.env=prod -jar ../build/server/webapp-runner-*.jar --expand-war --port $PORT libs/*.war
web: ./grailsw run-app
22 changes: 0 additions & 22 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ dependencies {
compile "io.springfox:springfox-swagger-ui:${springfox}"
compile "io.springfox.grails:springfox-grails:${springfoxGrails}"

//For Heroku
// compile 'org.eclipse.jetty:jetty-runner:9.2.11.v20150529'
compile 'com.github.jsimone:webapp-runner:8.0.30.2'

runtime 'postgresql:postgresql:8.4-702.jdbc3'
runtime "com.h2database:h2"

testCompile "org.grails:grails-plugin-testing"
Expand All @@ -89,23 +84,6 @@ bootRun {
task stage() {
dependsOn clean, war
}
tasks.stage.doLast() {
delete fileTree(dir: "build/distributions")
delete fileTree(dir: "build/assetCompile")
delete fileTree(dir: "build/distributions")
delete fileTree(dir: "build/libs", exclude: "*.war")
}
war.mustRunAfter clean

task copyToLib(type: Copy) {
into "$buildDir/server"
from(configurations.compile) {
include "webapp-runner*"
}
}

stage.dependsOn(copyToLib)




2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#Tue Mar 14 20:04:24 CDT 2017
grailsVersion=3.2.6
grailsWrapperVersion=1.0.0
gradleWrapperVersion=3.0
13 changes: 0 additions & 13 deletions grails-app/conf/application.groovy

This file was deleted.

8 changes: 4 additions & 4 deletions grails-app/conf/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ environments:
dataSource:
dbCreate: update
url: jdbc:h2:mem:testDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
# production:
# dataSource:
# dbCreate: none
# url: jdbc:h2:mem:prodDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
production:
dataSource:
dbCreate: none
url: jdbc:h2:mem:prodDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE

grails.serverURL: http://localhost:8080

0 comments on commit 5e68d4f

Please sign in to comment.