nyscapes/nywalker-server

View on GitHub
.env.example

Summary

Maintainability
Test Coverage
# This is the path to the database you will be using in :development.
# In heroku, the :production variable is set by running:
#
# `heroku config:set DATABASE_URL="<as in web client>"`
#
# If you want to rewire the dev db and have the app talk to the heroku db,
# change the line below to "DATABASE_URL=postgres://whatever:heroku@gives.you.as/the_database_url"
# Or comment it out and add the postgres line below it.

DATABASE_URL=postgres://localhost:5432/nywalker

# For testing, we use a separate database. Change this at the top of model.rb
# if you want to test on the development database.

TEST_DATABASE_URL=postgres://localhost:5432/nywalker_test

# Authentication is being farmed out to GitHub, for which you need a Client ID
# and Client secret. Those can be gotten by registering the application at:
# https://github.com/settings/applications/new

GITHUB_CLIENT_ID=asdfasdfasdfadfasdf
GITHUB_CLIENT_SECRET=adfasdfasdfasdfasdfasdfasdfasdfasdfa

# CANON_NAME is the name of the application. You can set it here so that
# different deployments have different names.

CANON_NAME=NYWalker

# The following settings are used to wire up the email messaging system.
# the actual App#mail method has some settings that are hardwired in to work
# with gmail. Of course, you can change them, too.

ADMIN_EMAIL_ADDRESS=someemail@example.com # who gets messages about flagging, etc.
EMAIL_FROM_ADDRESS=nywalkerbot@gmail.com # for example
SMTP_USERNAME=nywalkerbot@gmail.com # gmail prefers the full address here.
SMTP_PASSWORD=some_password # 2-way authentication requires an app password
SMTP_SERVER=smtp.gmail.com # for example

# COOKIE is used to trigger the session environments. It should be a 
# strong string, like what you can get from randomkeygen.com

COOKIE=s0M3_stR1n@

# GEONAMES_USERNAME is the username for the api at Geonames. You can create a
# new account by going here: http://www.geonames.org/login

GEONAMES_USERNAME=<see http://www.geonames.org/login>

# BASE_URL is the part of the application's URL between the protocol and the
# application itself. For "http://nywalker.newyorkscapes.org/books", for
# example, it is "nywalker.newyorkscapes.org"

BASE_URL=nywalker.newyorkscapes.org