Example app for Plotline
Ruby HTML JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
log
public
test
vendor/assets
.gitignore
Gemfile
Gemfile.lock
Procfile
README.md
Rakefile
config.ru
dotenv.example

README.md

Plotline Demo Blog

This is a demo Rails app for Plotline

Feel free to clone the repo and base your own blog/website on it.

Setup

First of all, you'll have to create a directory for your content. I store mine on Dropbox, so that it can be easily synced to my server. For development, though, dropbox is not required. You can start with a very basic structure:

mkdir blog-content
cd blog-content
mkdir media posts pages drafts
echo "---\ntitle: Hello world\ntype: post\n---\n\nThis is my first blog post\n" > posts/"$(date +'%Y-%m-%d')"-hello-world.md

In order to run the app, you'll need: postgres, python and homebrew (mac). Once you have that, the following script will install fswatch/inotify-tools required for monitoring changes in the content directory.

git clone git@github.com:pch/plotline-demo-blog.git
cd plotline-demo-blog
bin/setup

The script will ask you to provide the location of your content directory

  • simply paste the absolute path of the blog-content directory created above.

Once it's set up, modify the --source directory path in Procfile and run:

foreman start