Source for http://sidewalkland.com | Using Middleman / Haml / Yaml / Sass / Compass / CoffeeScript.
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.
data
public_html
source
.gitignore
Readme.markdown
config.rb

Readme.markdown

Sidewalkland.com

Issues

Due to a bug when using the Compass sprite generator in Middleman, the first build will produce faulty CSS. Doing a second build fixes it. Explained in this Github issue. Will be fixed in Middleman 3.0.


.htaccess file must not contain any Options or Apache at One.com will throw a 500 error. Comment out the following from default H5BP .htaccess:

Options -Indexes
Options +FollowSymlinks
Options -MultiViews

Change public folder to correspond to the build folder:

# Rewrite base dir to public_html
RewriteCond %{HTTP_HOST} ^sidewalkland.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.sidewalkland.com$
RewriteCond %{REQUEST_URI} !public_html/
RewriteRule (.*) /public_html/$1 [L]

Deployment

Deployment with Dandelion requires a dandelion.yml file in the root dir, with the following structure:

# Required
scheme: ftp
host: example.com
username: user
password: pass

# Optional
path: path/to/deployment
exclude:
  - .gitignore
  - dandelion.yml

After pushing to the repo, deployment of HEAD is done with:

$ dandelion deploy

Dandelion keeps track of the currently deployed revision so that only files which have been added/changed/deleted need to be transferred.