Worked 2015-09-08 for Phoenix 1.0.1 on Dokku 0.3.25.
These instructions assume you've set up Dokku. If not, go find a tutorial for that part. My notes for setting it up on Digital Ocean.
Create a Dokku app:
| Description: This stack includes resources needed to deploy AWS CDK apps into this | |
| environment | |
| Parameters: | |
| TrustedAccounts: | |
| Description: List of AWS accounts that are trusted to publish assets and deploy | |
| stacks to this environment | |
| Default: '' | |
| Type: CommaDelimitedList | |
| TrustedAccountsForLookup: | |
| Description: List of AWS accounts that are trusted to look up values in this |
| # maximum capability of system | |
| user@ubuntu:~$ cat /proc/sys/fs/file-max | |
| 708444 | |
| # available limit | |
| user@ubuntu:~$ ulimit -n | |
| 1024 | |
| # To increase the available limit to say 200000 | |
| user@ubuntu:~$ sudo vim /etc/sysctl.conf |
| import { View, Text } from 'react-native' | |
| import { css } from 'glamor-native' | |
| export App = () => { | |
| <View style={css({ color: 'red' })}> | |
| <Text>Hello world!</Text> | |
| </View> | |
| } |
| RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
| RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
| RN >= 0.63 - watchman watch-del-all && rm -rf node_modules && npm install && rm -rf /tmp/metro-* && npm run start --reset-cache | |
| npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache | |
| Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache |
Worked 2015-09-08 for Phoenix 1.0.1 on Dokku 0.3.25.
These instructions assume you've set up Dokku. If not, go find a tutorial for that part. My notes for setting it up on Digital Ocean.
Create a Dokku app:
| /** | |
| * Basic proof of concept. | |
| * - Hot reloadable | |
| * - Stateless stores | |
| * - Stores and action creators interoperable with Redux. | |
| */ | |
| import React, { Component } from 'react'; | |
| export default function dispatch(store, atom, action) { |
| interface Option<T> { | |
| map <U>(fn: (a: T) => U): Option<U>; | |
| isSome(): boolean; | |
| isNone(): boolean; | |
| isSomeAnd(fn: (a: T) => boolean): boolean; | |
| isNoneAnd(fn: () => boolean): boolean; | |
| unwrap(): T; | |
| unwrapOr(def: T): T; | |
| unwrapOrElse(f: () => T): T; | |
| map<U>(f: (a: T) => U): Option<U>; |