Skip to content

Commit dfd1c7d

Browse files
radko93Facebook Github Bot 8
authored andcommitted
Making sinopia setup easier for the user
Summary:Simply installing `sinopia` does not create a config file (or even a directory when it should be placed). Running `sinopia` for the first time generates a default config file so it?s easier for the user to configure it properly. Closes facebook#7146 Differential Revision: D3212613 Pulled By: mkonicek fb-gh-sync-id: e1a2bbd8311a93b4d8a230902dd8031c85a205c3 fbshipit-source-id: e1a2bbd8311a93b4d8a230902dd8031c85a205c3
1 parent 994745e commit dfd1c7d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

react-native-cli/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ Because `react-native init` calls `npm install react-native`, simply linking you
1010

1111
$ npm install -g sinopia
1212

13-
Then, open `~/.config/sinopia/config.yaml` and configure it like this (note the `max_body_size`):
13+
Now you can run sinopia by simply doing:
14+
15+
$ sinopia
16+
17+
Running it for the first time creates a default config file. Open `~/.config/sinopia/config.yaml` and configure it like this (note the `max_body_size`):
1418

1519
storage: ./storage
1620

@@ -40,9 +44,7 @@ Then, open `~/.config/sinopia/config.yaml` and configure it like this (note the
4044

4145
max_body_size: '50mb'
4246

43-
Now you can run sinopia by simply doing:
44-
45-
$ sinopia
47+
Remember to restart sinopia afterwards.
4648

4749
### Publishing to sinopia
4850

@@ -99,12 +101,12 @@ This usually happens when you install a package using one version of Node and th
99101

100102
$ npm uninstall -g sinopia
101103
$ npm install -g sinopia
102-
104+
103105
After upgrading to Node 4 you might also need to reinstall npm. What worked for me was:
104106

105107
$ npm uninstall -g npm
106108
$ nvm install npm
107-
109+
108110
See the [nvm guide](https://github.com/creationix/nvm#usage) for more info.
109111

110112
### Alternative workflow

0 commit comments

Comments
 (0)