Skip to content

neverstopbuilding/dropblog

Repository files navigation

Never Stop Building: The Blog 2.0

Now with DropBlog!

Build Status Code Climate Test Coverage

Project documentation can be found at http://www.neverstopbuilding.com/dropblog

Configuration

Most of the variables are stored in a application.yml file and used with figaro:

dropbox_user_id: ~~~
dropbox_access_token: ~~~
dropbox_app_key: ~~~
dropbox_app_secret: ~~~
dropbox_blog_dir: dropblog-test
AWS_ACCESS_KEY_ID: ~~~
AWS_SECRET_ACCESS_KEY: ~~~
S3_BUCKET: ~~~

production:
  dropbox_blog_dir: never-stop-building
  DOMAIN_NAME: ~~~
  SECRET_KEY_BASE: ~~~
  S3_BUCKET: ~~~
  FOG_PROVIDER: AWS
  FOG_DIRECTORY: ~~~
  ASSET_SYNC_GZIP_COMPRESSION: true

development:
  REDISTOGO_URL: 'redis://localhost:6379'
  RACK_ENV: development
  PORT: '3000'

Be sure to restart spring if you update the variables locally. And for loading them to heroku:

figaro heroku:set -e production

Development

  • Clone the repository
  • bundle install
  • Ensure postgres is installed
  • Create a new user sudo -u postgres createuser --interactive
  • sudo -i -u postgres to log in to the postgress user, then psql to create a db terminal
  • ALTER USER "dropblog" WITH PASSWORD 'secret';
  • Then run rake db:create
  • And rake db:migrate