- Place
deploy.sh
in{docpad folder}/bin/
- Create (or edit) a
.env
file in your docpad folder with the following values:
#!/bin/bash
DEPLOY_SOURCE_DIR="out/"
DEPLOY_DEST_DIR="~/public_html/"
DEPLOY_SERVER=deploy-server-name
This guide will walk you through how you can use a GitHub repository to house your wiki content, have DocPad render it, and automatically update on changes. It's also really nice as we get to benefit from the github project workflow for our wiki, that is issues, pull requests, etc.
We use this workflow heavily by linking the DocPad Website and the DocPad Documentation repositories allowing us to have users edit and submit pull requests for improvements to our documentation, and once merged, the website regenerates automatically.
module.exports = | |
initialize: (sessionUserObject) -> | |
(req, res, next) -> | |
passport = @ | |
passport._key = 'passport' | |
passport._userProperty = 'user' | |
passport.serializeUser = (user, done) -> done null, user | |
passport.deserializeUser = (user, done) -> done null, user |
var request = require('supertest'), | |
should = require('should'), | |
app = require('../server'); | |
var Cookies; | |
describe('Functional Test <Sessions>:', function () { | |
it('should create user session for valid user', function (done) { | |
request(app) | |
.post('/v1/sessions') |
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
) | |
type HttpConnection struct { |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# fetch_and_combine.py | |
# | |
""" | |
Scans CloudFront logs in an S3 bucket for any that are new. Combines log files | |
into a single local file per hour. If logs for multiple CloudFront | |
distributions are present, combines them all. |
post.html.eco
used for displaying prev and next page links on your current page (static site friendly)posts.html.eco
used for displaying a content listing, that is split up onto multiple pages (requires dynamic site)To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
.leaflet-div-icon { | |
background: transparent; | |
border: none; | |
} | |
.leaflet-marker-icon .number{ | |
position: relative; | |
top: -37px; | |
font-size: 12px; | |
width: 25px; |