Skip to content

Commit

Permalink
Merge pull request devopsdays#301 from devopsdays/bridget-document-ul…
Browse files Browse the repository at this point in the history
…imit

ulimit, ugh.

Former-commit-id: 1a90ecb
  • Loading branch information
mattstratton committed May 9, 2016
2 parents be7a612 + 4c67bda commit 0c70139
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,27 @@ If you'd like to edit a specific devopsdays event site (and/or contribute code),
### Setup
1. Install [Hugo v0.15+](http://gohugo.io)
1. Fork this repo

### View site locally
1. To watch for changes and rebuild on the fly, open a new terminal, cd to your fork of the repo, and enter this command: `hugo server -w --baseUrl="http://localhost:1313"`
1. OS X has low ulimits, so you may see this message:
```
hugo server -w --baseUrl="http://localhost:1313”
[...]
Error: listen tcp 127.0.0.1:1313: socket: too many open files
```

You can correct it with this:
```
$ hugo check ulimit
$ sudo sysctl -w kern.maxfiles=65536
$ sudo sysctl -w kern.maxfilesperproc=65536
$ ulimit -n 65536 65536
```
Then in a new window:
```
$ hugo server -w --baseUrl="http://localhost:1313"
```

### Contribute changes
1. Code changes that affect the overall site will be reviewed only if they are in a separate pull request from any event-specific content. tl;dr: don't add "giant template change" in the same PR as "here are some more sponsors". If it affects anything other than your event, it should be in its own PR.
Expand Down

0 comments on commit 0c70139

Please sign in to comment.