Flip Flops: Quite blogging, go to the beach.
Take a little syntax out of your life. It's just a file system and your words.
posts. This folder has all your blog posts, distinct from pages in the site.
---title: Post Titledate: 2014-06-25T15:31:00.000-0500author: Post Author (default's to author in config::site.author)categories:- Category- Other---
Once that's in place, you're ready to start flipflops. From the flipflops folder
CONFIG_FILE=/Users/username/full/path/to/project/config.js node app.js
If you do happen to like hacking on the beach, check out our design docs!
Flipflops runs a few different ways.
node app.jswill have you up and running most quickly.
npm start script will use passenger if it's in the path, or supervisor
otherwise. The docker container uses supervisor, but that's under the hood.
Flipflops can be configured using a variety of environment variables, including NODE_NEV, NEW_RELIC_LICENSE_KEY, and many others. It is your responsibility to handle those safely for your environment. Flipflops has a deploy script that helps out, if you have a private git repo.
Create a private repo, for all secure project settings (this works across all
projects). Create a branch for flipflops (
git branch --orphan flipflops ; git checkout flipflops). Create a
.sh file for each environment you need; I
production.sh at a minimum. Put any environment
vars in those. Commit and push this branch.
In flipflops, create an environment variable
that you just created. Run
sh ./src/deploy/env/load.sh ENVIRONMENT, where
ENVIRONMENT is the name of the .sh file (without the .sh) you just created.
Now, when you start flipflops with
npm start, these settings will be loaded.