Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
CommandBox script to run a Mura 7 site with an embedded H2 database
# Need latest CommandBox 3.6
# install cfconfig
install commandbox-cfconfig --force
# install mura 7
install muracms
# start server
server start cfengine=lucee@5 rewritesEnable=true openBrowser=false
# setup datasource
cfconfig datasource save name=muradb class="org.h2.Driver" dbdriver="H2" custom="mode=MySQL&path=./db/" database="muradb" dsn="jdbc:h2:{path}{database};MODE={mode}" allow="511" clob=true blob=true
# reload config
server restart
# open browser
server open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment