From fe921f967cdb4926332ef3fb768a01d7ed73d289 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Tue, 4 Aug 2015 10:41:26 +0800 Subject: [PATCH] Add React.PropTypes.object --- browserify.md | 6 +++- deis.md | 66 ++++++++++++++++++++++++++++++++++++++ flynn.md | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++ react.md | 1 + 4 files changed, 160 insertions(+), 1 deletion(-) create mode 100644 deis.md create mode 100644 flynn.md diff --git a/browserify.md b/browserify.md index f8cdd847c..ffdae100e 100644 --- a/browserify.md +++ b/browserify.md @@ -3,11 +3,15 @@ title: Browserify layout: default --- - browserify input.js -o output.js -t coffeeify -t [ coffeeify --extension coffee ] + + -u react (--exclude: omit a file) + -x react (--external: reference in another bundle) + -i react (--ignore: stub a file) + -s Myapp (--standalone: generate a UMD bundle) --debug ### Programmatic usage diff --git a/deis.md b/deis.md new file mode 100644 index 000000000..77ad314f7 --- /dev/null +++ b/deis.md @@ -0,0 +1,66 @@ +--- +title: Deis +--- + +### Deploy + +``` +deis create app-name +git push deis master +deis open +``` + +### Deploy dockerfile + +```sh +$ deis create app-name +$ deis pull redis:latest + Creating build... done, v2 +# default process type is `cmd` +``` + +### Config + +``` +deis config:list +deis config:set FOO=bar BAZ=foo +deis config:unset FOO +deis config:pull # writes to .env +deis config:push # reads from .env +``` + +### Managing instances + +``` +deis logs +deis run rake db:migrate +deis ps +``` + +### Custom domains + +``` +deis domains:list +deis domains:add www.myapp.com +deis domains:remove www.myapp.com +``` + +### Limits + +```sh +deis limits:set web=1G +deis limits:set web=1024 --cpu +# (`web` is a process type) +``` + +### Sharing + +``` +deis perms:create otheruser +``` + +### [SSL](http://docs.deis.io/en/latest/using_deis/app-ssl/) + +``` +deis certs:add server.crt server.key +``` diff --git a/flynn.md b/flynn.md new file mode 100644 index 000000000..2b7955188 --- /dev/null +++ b/flynn.md @@ -0,0 +1,88 @@ +--- +title: Flynn +--- + +### General workflow + +* Start a flynn cluster (on amazon or vagrant) +* `flynn cluster add` to add that cluster +* `flynn create NAME` in your app +* `git push flynn master` to deploy + +### Creating a cluster (AWS) + +```sh +flynn install # (provisions AWS EC2 stuff) +flynn key add # (adds your pubkey to AWS) +``` + +* This creates `XXXX.flynnhub.com` +* Dashboard in `dashboard.XXXX.flynnhub.com` +* Use `flynn -a dashboard env get LOGIN_TOKEN` to get login token +* Apps live in `APP.XXXX.flynnhub.com` + +### Using a flynn cluster + +Managed in `~/.flynnrc` + +```sh +flynn cluster +flynn cluster add [-g githost] [-p pin] NAME URL KEY +flynn cluster remove NAME +flynn cluster default NAME # use this current +``` + +### Setting up a new app + +```sh +cd ~/project +flynn create example # adds the `flynn` remote +flynn route # prints http routes +git push flynn master +``` + +### Environment vars + +``` +flynn env +flynn env set FOO=bar BAZ=foobar +flynn env unset FOO +``` + +### Scale + +```sh +flynn ps +flynn scale web=3 +``` + +### Logs + +```sh +flynn log +flynn log flynn-d55c7a... +``` + +### Running commands + +```sh +flynn run rake db:migrate +``` + +### Manage routes + +```sh +flynn route +flynn route add http example.com +# then make a CNAME from example.com to myapp.xxxx.flynnhub.com +``` + +### More + +```sh +flynn ps +flynn kill + +flynn meta +flynn meta set foo=baz +``` diff --git a/react.md b/react.md index 5d2ebdac9..a675efbca 100644 --- a/react.md +++ b/react.md @@ -240,6 +240,7 @@ React.createClass({ propTypes: { email: React.PropTypes.string, seats: React.PropTypes.number, + settings: React.PropTypes.object, callback: React.PropTypes.func, isClosed: React.PropTypes.bool, any: React.PropTYpes.any,