Skip to content

allegrem/pour-qui-faut-il-voter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

Create a .env file containing (you can change the login, email and password)

RACK_ENV=development
PORT=3000

ANALYTICS=xxx
ANALYTICS_DOMAIN=mydomain.com

DEFAULT_ADMIN_EMAIL=admin@example.com
DEFAULT_ADMIN_PASSWORD=test

MAIL_ADDRESS=smtp.gmail.com
MAIL_PORT=587
MAIL_DOMAIN=mydomain.com
MAIL_USERNAME=admin@example.com
MAIL_PASSWORD=test
MAIL_AUTHENTICATION=plain
MAIL_STARTTLS=true

Run

$ bundle install
$ rake db:migrate

Then create a Procfile containing

web: bundle exec unicorn -p $PORT -E $RACK_ENV

You can now run the app using foreman start.

Deploy on Heroku

Fork the repository on your machine. Then create a new Heroku app.

$ heroku create pour-qui-faut-il-voter-bis

Configure the environment variables (except RACK_ENV and PORT).

$ heroku config:set DEFAULT_ADMIN_EMAIL=admin@example.com DEFAULT_ADMIN_PASSWORD=test ...

Deploy, migrate and enjoy!

$ git push heroku
$ heroku run rake db:migrate

About

Un site Web aidant les télécommiens à savoir pour qui voter durant une campagne BDE.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published