Project documentation can be found at http://www.neverstopbuilding.com/dropblog
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
- 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, thenpsql
to create a db terminalALTER USER "dropblog" WITH PASSWORD 'secret';
- Then run
rake db:create
- And
rake db:migrate