Skip to content

Instantly share code, notes, and snippets.

@gjoseph
Created October 25, 2011 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gjoseph/1312704 to your computer and use it in GitHub Desktop.
Save gjoseph/1312704 to your computer and use it in GitHub Desktop.
Tomcat context file for the public instance of the "Acme" project discussed at http://dev.magnolia-cms.com/~gjoseph/dont-deploy-magnolia-deploy-your-project
<!-- if this was declared in the <Host> configuration, we'd add a path="" attribute -->
<Context path="" docBase="/opt/acme-project/wars/acme-project-webapp-1.0-SNAPSHOT.war" debug="0" reloadable="false">
<Parameter name="magnoliaInstance" value="prodPublic" override="false"/>
<Resource name="jdbc/MagnoliaAcmeDS" auth="Container"
type="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
factory="com.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory"
driverClassName="com.mysql.jdbc.Driver"
user="acme_magnolia" username="acme_magnolia"
password="secret"
url="jdbc:mysql://localhost:3306/acme_repo_public?useUnicode=true&amp;characterEncoding=UTF8"
explicitUrl="true"
/>
</Context>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment