skyl / skyl2

aggressively under-engineered ReST blogging platform.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

skyl2 is an aggressively under-engineered blogging platform on Django 1.6. It's just ReST. It's just "blogging". There are no features. It should be simple enough to hack the source if you want to do something else. You can make a few changes and push it out to a server with a command or two.

Features

ReST editing with live preview. Syntax highlighting. jsMath. Disqus comments. videos. media. Beauty. Elegance. Flexibility. Simplicity.

Modify the source

  • Edit feeder/templates/disqus.html and put your disqus_shortname there.
  • Change the git repo in deploy/roles/web/tasks.yml to your repo.
  • Put in your local_settings.py.j2 template

local_settings.py.j2 will need a SECRET_KEY. This file lives at deploy/roles/web/templates/local_settings.py.j2

SECRET_KEY = 'gobbledygook'

Ship

Deployment with ansible assumes a recent ubuntu/debian (TODO - yum). You don't need to use EC2. But, you can. If you have your own way, skip the provisioning gloss-over below.

Provision (EC2)

You can use EC2 and get stuff provisioned for you too. The provision.yml playbook is provided just as a convenience. If you have a machine you can ssh into, skip all this. Get AWS setup, export AWS_ACCESS_KEY, export AWS_SECRET_KEY, export EC2_URL in your bash shell. Create a keypair for the right region.

# no .pem on the key name.
ansible-playbook provision.yml -e "key_name=skyl"

If you provisioned your machine in this way, you probably will want to save the json output of the provisioning task somewhere.

There are a lot of nuances to AWS permissions/regions/etc which are beyond the scope of this readme.

Put the path to your .pem identity file into your .ssh/config, perhaps

IdentityFile ~/Downloads/skyl.pem

Deploy

Once you can ssh into you instance, put the IP in your hosts file under the skyl2 group.

[skyl2]
54.200.210.238 ansible_ssh_user=ubuntu

Now, you can run the main playbook against this one server.

ansible-playbook main.yml

About

aggressively under-engineered ReST blogging platform.


Languages

Language:JavaScript 98.3%Language:Python 1.2%Language:CSS 0.5%