/pencilbox

Publish to the web straight from iA Writer (and other Markdown text editors)

Primary LanguageRuby

README

Build status

Setting up for development

Link this folder to two Pow domains:

ln -n ~/this/folder ~/.pow/thisispencilbox
ln -n ~/this/folder ~/.pow/pencilboxes

Install the bundler pre-release:

gem install bundler --pre

Run

script/setup

This will run bundler and create the databases.

Create an application (https://www.dropbox.com/developers/apps) on Dropbox and add the following to a file named .powenv:

export DROPBOX_APP_KEY=
export DROPBOX_APP_SECRET=

Restart your Pow server with

touch tmp/restart.txt

And you are good to go!

Testing

Pencilbox uses the standard Rails MiniTest suite. Run all the tests with:

rake test

Deploying

Deploy configuration is located in the file config/deploy.rb.

To deploy the master branch to the servers run:

cap deploy

To deploy a specific branch to the servers run:

cap deploy BRANCH=name-of-the-branch