-
Notifications
You must be signed in to change notification settings - Fork 6
Installation
As outlined in the README, there are four primary components to Envelope:
- Web Server (thin)
- Websocket Server (private_pub)
- Search Engine (sunspot)
- Background Processing (delayed_job)
In development, Envelope only has gem dependencies. That means you can simply run bundle install
and your local version of Envelope is ready to go. There are known issues with thin and Windows machines, however. We recommend developing on a Mac or *nix-based machine.
In production, it is recommended that you compile your own source versions of Solr. It is also recommended that you switch from delayed_job to resque, to limit the number of calls to the database. That procedure will be covered in further depth in a future page.
To install envelope on your local machine for development, start by fetching the codebase from github and installing all the dependencies:
git clone git@github.com:envelopeapp/envelope.git
bundle install
This could take awhile, so please be patient.
Next, you'll need to configure MySQL. By default, envelope uses the following database information:
development:
database: 'envelope_development'
username: 'envelope'
password: 'envelope'
production:
database: 'envelope_production'
username: 'envelope'
password: 'envelope'
test:
database: 'envelope_test'
username: 'envelope'
password: 'envelope'
You do not have to use those values, just edit config/database.yml
and update the appropriate fields for your installation.
Finally, seed the database with some default data:
bundle exec rake db:seed
You should be ready to run envelope. Use foreman to start up the application and all it's dependencies:
bundle exec foreman start
By default, Envelope will use sendmail to deliver it internal mailers. If you do not have sendmail installed, change the method in config/development.rb
.