The ruby-lang.org mailing list service/subscriber.
A Sinatra application that handles mailing list subscriptions for the www.ruby-lang.org site.
-
Clone repository and install dependencies:
git clone https://github.com/stomar/ruby-lang-mls.git cd ruby-lang-mls bundle install
-
Setup environment variables, e.g. with:
export SENDER_EMAIL=john.doe@mymail.org export SMTP_USER=username export SMTP_PASSWORD=password export SMTP_SERVER=smtp.mymail.org
If necessary, also set
SMTP_PORT
(default:587
). -
Launch:
bundle exec rackup config.ru
-
Open site at
localhost:9292
The application can log to a PostgreSQL database, provided the
DATABASE_URL
environment variable is set and the database is
configured correctly.
-
On Heroku, create a PostgreSQL database and make sure
DATABASE_URL
points to it. -
For local development and testing, the application tries to use an SQLite database when the
DATABASE_URL
variable is not set.
Copyright © 2013-2018 Marcus Stollsteimer
This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 or later (GPLv3+), see www.gnu.org/licenses/gpl.html. There is NO WARRANTY, to the extent permitted by law.