Skip to content

Commit

Permalink
Formatting sanity
Browse files Browse the repository at this point in the history
  • Loading branch information
chbrown committed Jun 27, 2013
1 parent 36ba01d commit 97dcb7c
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 35 deletions.
19 changes: 19 additions & 0 deletions LICENSE
@@ -0,0 +1,19 @@
Copyright (c) 2012-2013 Christopher Brown

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
82 changes: 47 additions & 35 deletions README.md
Expand Up @@ -2,44 +2,56 @@

Run it:

dropyll \
--port 8050 \
--tld blogginin1999.com \
--local /www/blog-dropyll \
--dropbox /blog-jekyll \
--appkey <your app key> \
--appsecret <your app secret> \
--oauthtoken <your dropbox account token> \
--oauthsecret <your dropbox account secret>

*All of those `<your whatever>` values will be un-quoted strings of hexadecimals.*
```bash
dropyll
--port 8050
--tld blogginin1999.com
--local /www/blog-dropyll
--dropbox /blog-jekyll
--appkey {your app key}
--appsecret {your app secret}
--oauthtoken {your dropbox account token}
--oauthsecret {your dropbox account secret}
```

All of those `{your whatever}` values should be un-quoted strings of hexadecimals.

## Back-end

Setting up:

chown u+a nodedude /www/
# where nodedude is who runs dropyll above
chown u+a nodedude /www/
# where nodedude is who runs dropyll above

Nginx config:

server {
listen 80;
server_name test.blogginin1999.com;
index index.html;
location / {
root /www/blog-dropyll/_test;
}
}

server {
listen 80;
server_name *.blogginin1999.com;
index index.html;
location / {
root /www/blog-dropyll/_live;
}
location /dropyll {
proxy_pass http://127.0.0.1:8050;
}
}

node-dropbox has a slightly nicer interface, but is broken
server {
listen 80;
server_name test.blogginin1999.com;
index index.html;
location / {
root /www/blog-dropyll/_test;
}
}

server {
listen 80;
server_name *.blogginin1999.com;
index index.html;
location / {
root /www/blog-dropyll/_live;
}
location /dropyll {
proxy_pass http://127.0.0.1:8050;
}
}

## Dependencies

- **dbox**. node-dropbox has a slightly nicer interface, but is broken
* **regex-router**. lightweight regex-based http controller routing.
* **optimist**. easy command line option parsing.

## License

Copyright © 2012–2013 Christopher Brown. [MIT Licensed](LICENSE).
Binary file added favicon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added favicon.psd
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -6,6 +6,7 @@
"homepage": "http://github.com/chbrown/dropyll",
"bin": { "dropyll": "./dropyll" },
"author": "Christopher Brown <io@henrian.com>",
"license": "MIT",
"main": "./dropyll",
"dependencies": {
"regex-router": "*",
Expand Down

0 comments on commit 97dcb7c

Please sign in to comment.