primo-cli 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -19
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -144,31 +144,17 @@ my-site/
|
|
|
144
144
|
└── uploads/ # Media files
|
|
145
145
|
```
|
|
146
146
|
|
|
147
|
-
##
|
|
147
|
+
## Multiple Sites
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
Run `primo dev` from a parent folder to work on multiple sites at once:
|
|
150
150
|
|
|
151
151
|
```
|
|
152
152
|
workspace/
|
|
153
|
-
├── server.json
|
|
153
|
+
├── server.json # Optional: { "port": 3000 }
|
|
154
154
|
├── site-one/
|
|
155
|
-
│
|
|
156
|
-
│ ├── blocks/
|
|
157
|
-
│ └── pages/
|
|
155
|
+
│ └── primo.json
|
|
158
156
|
└── site-two/
|
|
159
|
-
|
|
160
|
-
├── blocks/
|
|
161
|
-
└── pages/
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
```json
|
|
165
|
-
// server.json
|
|
166
|
-
{ "port": 3000 }
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
```bash
|
|
170
|
-
cd workspace
|
|
171
|
-
primo dev
|
|
157
|
+
└── primo.json
|
|
172
158
|
```
|
|
173
159
|
|
|
174
160
|
Each site gets its own subdomain: `site-one.localhost:3000`, `site-two.localhost:3000`
|
package/dist/index.js
CHANGED