Another approach at keeping things you've found on the web.
I decided that bitfondue should always be served via HTTPS and in order to prevent bugs being introduced because I develop without encryption you have to create a self-signed certificate in order to get a fully working development setup.
# Create a certificate in the project directory.
# When it comes to "Common Name (e.g. server FQDN or YOUR name) []:" give it the value "bitfondue.dev"
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout bitfondue.dev.key -out bitfondue.dev.crt
# Open the certificate in the Keychain Access application
open /Applications/Utilities/Keychain\ Access.app bitfondue.dev.crt
# In the "Category" section in the lower left go to "Certificates"
# Double-click the "bitfondue.dev" certificate and open the "Trust" section
# Change the value for "When using this certificate" to "Always Trust"
# Close the dialog and accept the change by entering your password
lein figwheel
will start a server, serving the files inresources/public
and watching & recompiling any ClojureScript files.
- Copy the
.env.dist
file to.env_dev
and fill in your custom settings. - Install all dependencies with
make install
- Start the development server with
make start
- Make sure you have a PostgreSQL server running.
v9.4.1
or higher - Create a database for the project to use
psql -c "create database bitfondue_dev"
make migrate
heroku create
heroku buildpacks:set https://github.com/ddollar/heroku-buildpack-multi.git
- Running the migrations
heroku run JVM_OPTS="" lein migrate --app your-app-name