Coder Social home page Coder Social logo

skyl2's Introduction

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

python

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.

bash

# 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.

bash

ansible-playbook main.yml

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.