-
Notifications
You must be signed in to change notification settings - Fork 1
Run app locally with Heroku
You can use deploy Pulsar locally for testing purposes, but first make sure you already have PostgreSQL installed. You also need to create the Postgres database for the development environment. Open up config/database.yml. Find the block that says "development" and then take note of the value of the "database" property. You'll need to create a Postgres database locally that has the same name. You can do this using createdb
, which comes prepackaged with PostgreSQL.
Heroku CLI has a command heroku local
that allows you to start an app locally. This command should be run in the root folder of the app, as it expects a .env file in the app's root directory that stores key=value environment variable settings. You'll need to add to this file the key=value settings for the environment variables that were discussed on the deployment page. Furthermore, you'll need to add environment variables that the Mailgun addon exported (don't worry if you haven't set up mailgun yet, you'll still be able to use your test deployment as described on the Mailgun wiki page.