├── .gitignore ├── .project ├── .slugignore ├── LICENSE ├── README.md ├── app.json ├── lucee.png ├── pom.xml ├── system.properties └── webroot ├── Application.cfc ├── WEB-INF ├── lucee │ └── lucee-web.xml.cfm └── web.xml ├── index.cfm └── urlrewrite.xml /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | Procfile 3 | webroot/WEB-INF 4 | !webroot/WEB-INF/web.xml 5 | !webroot/WEB-INF/lucee/lucee-web.xml.cfm -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | lucee-heroku 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.slugignore: -------------------------------------------------------------------------------- 1 | target/* -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Mike Sprague 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | ##Lucee BuildPack for Heroku 3 | 4 | Based on the Latest Lucee Version 5 5 | 6 | [![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy) 7 | 8 | Demo: [http://luceeheroku.herokuapp.com/](http://luceeheroku.herokuapp.com/) 9 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Lucee Sample", 3 | "description": "A barebones Lucee app using Lucee 5", 4 | "repository": "https://github.com/lucee/lucee-heroku", 5 | "logo": "https://avatars2.githubusercontent.com/u/10973141?v=3&s=200", 6 | "keywords": ["lucee", "cfml"] 7 | } 8 | -------------------------------------------------------------------------------- /lucee.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucee/lucee-heroku/4f4a39d7537f459648cb9e656af10d4a31e0ddd8/lucee.png -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 4.0.0 5 | lucee.heroku 6 | lucee.heroku 7 | 1.0.0 8 | Lucee Heroku Application Template 9 | pom 10 | 11 | 12 | 5.1.2.11-SNAPSHOT 13 | 5.1.36 14 | 7.0.57.2 15 | 16 | 17 | 18 | 19 | org.lucee 20 | lucee 21 | ${lucee.version} 22 | 23 | 24 | 25 | 26 | 27 | oss-sonatype 28 | oss-sonatype 29 | https://oss.sonatype.org/content/repositories/snapshots/ 30 | 31 | true 32 | 33 | 34 | 35 | 36 | 37 | 38 | central 39 | Maven Plugin Repository 40 | http://repo1.maven.org/maven2 41 | default 42 | 43 | false 44 | 45 | 46 | never 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | maven-clean-plugin 55 | 2.6.1 56 | 57 | 58 | 59 | webroot/WEB-INF 60 | 61 | **/* 62 | 63 | 64 | *.xml 65 | **/lucee-server.xml 66 | **/lucee-web.xml.cfm 67 | 68 | false 69 | 70 | 71 | webroot/WEB-INF/lucee-server 72 | 73 | **/* 74 | 75 | false 76 | 77 | 78 | 79 | 80 | 81 | 82 | org.apache.maven.plugins 83 | maven-dependency-plugin 84 | 2.3 85 | 86 | 87 | package 88 | copy 89 | 90 | 91 | 92 | com.github.jsimone 93 | webapp-runner 94 | ${tomcatrunner.version} 95 | webapp-runner.jar 96 | false 97 | ${project.build.directory} 98 | 99 | 100 | 101 | org.tuckey 102 | urlrewritefilter 103 | 4.0.4 104 | urlrewritefilter.jar 105 | false 106 | webroot/WEB-INF/lib 107 | 108 | 109 | 110 | mysql 111 | mysql-connector-java 112 | ${mysqlconnector.version} 113 | mysql-connector.jar 114 | false 115 | webroot/WEB-INF/lib 116 | 117 | 118 | 119 | org.lucee 120 | lucee 121 | ${lucee.version} 122 | lucee.jar 123 | true 124 | webroot/WEB-INF/lib 125 | 126 | 127 | 128 | org.apache.felix 129 | org.apache.felix.framework 130 | 4.2.1 131 | osgi.jar 132 | false 133 | webroot/WEB-INF/lib 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | copy-lucee-deps 142 | validate 143 | 144 | copy-dependencies 145 | 146 | 147 | webroot/WEB-INF/lucee-server/bundles 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | maven-antrun-plugin 157 | 1.8 158 | 159 | 160 | generate-sources 161 | 162 | 163 | 165 | 166 | 167 | 168 | run 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | -------------------------------------------------------------------------------- /system.properties: -------------------------------------------------------------------------------- 1 | java.runtime.version=1.8 -------------------------------------------------------------------------------- /webroot/Application.cfc: -------------------------------------------------------------------------------- 1 | component output="false" { 2 | this.name = "luceetest"; 3 | 4 | /* Code for setting a mysql datasource 5 | this.datasources["datasource"] = { 6 | class:'org.gjt.mm.mysql.Driver' 7 | ,connectionString:'jdbc:mysql://#server.system.environment.db_host#:#server.system.environment.db_port#/#server.system.environment.db_name#?characterEncoding=UTF-8&useUnicode=true&useLegacyDatetimeCode=true&reconnect=true' 8 | ,username:'#server.system.environment.db_user#' 9 | ,password:'#server.system.environment.db_password#' 10 | }; 11 | 12 | */ 13 | 14 | } -------------------------------------------------------------------------------- /webroot/WEB-INF/lucee/lucee-web.xml.cfm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | 15 | 16 | 17 | 18 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 52 | 53 | 54 | 55 | 72 | 73 | 74 | 75 | 76 | 77 | 82 | 83 | 84 | 88 | 89 | 90 | 91 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 132 | 133 | 134 | 135 | 146 | 147 | 148 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | -------------------------------------------------------------------------------- /webroot/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | UrlRewriteFilter 10 | org.tuckey.web.filters.urlrewrite.UrlRewriteFilter 11 | 12 | 13 | 14 | confReloadCheckInterval 15 | 0 16 | 17 | 18 | 19 | confPath 20 | /urlrewrite.xml 21 | 22 | 23 | 24 | 25 | logLevel 26 | INFO 27 | 28 | 29 | 30 | 31 | statusEnabled 32 | false 33 | 34 | 35 | 36 | 37 | UrlRewriteFilter 38 | * 39 | REQUEST 40 | 41 | 42 | 43 | 44 | Railo CFML Engine 45 | CFMLServlet 46 | railo.loader.servlet.CFMLServlet 47 | 1 48 | 49 | 50 | 51 | CFMLServlet 52 | *.cfc 53 | *.cfm 54 | *.cfml 55 | /index.cfc/* 56 | /index.cfm/* 57 | /index.cfml/* 58 | 59 | 60 | 61 | 62 | 63 | Railo Servlet for RESTful services 64 | RESTServlet 65 | railo.loader.servlet.RestServlet 66 | 2 67 | 68 | 69 | 70 | RESTServlet 71 | /rest/* 72 | 73 | 74 | 75 | 76 | 77 | index.cfm 78 | index.cfml 79 | index.html 80 | index.htm 81 | index.jsp 82 | 83 | 84 | -------------------------------------------------------------------------------- /webroot/index.cfm: -------------------------------------------------------------------------------- 1 |

Welcome

2 | 3 | Lucee #server.lucee.version# running on Heroku 4 | 5 | 6 | 7 |

Environment variables available..

8 | 9 | -------------------------------------------------------------------------------- /webroot/urlrewrite.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | If the request is for Lucee admin, don't process any further rules 7 | ^/lucee/(.*) 8 | /index.cfm 9 | 404 10 | 11 | 12 | 13 | search engine friendly urls for cf frameworks 14 | 15 | ^(.*)$ 16 | /index.cfm$1 17 | 18 | 19 | --------------------------------------------------------------------------------