Skip to content

Commit 9c100cf

Browse files
authored
describe how to use forked parse-server in custom docker image (#7206)
1 parent a430d6f commit 9c100cf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CONTRIBUTING.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ Once you have babel running in watch mode, you can start making changes to parse
8080
* The `lib/` folder is not committed, so never make changes in there.
8181
* Always make changes to files in the `src/` folder.
8282
* All the tests should point to sources in the `lib/` folder.
83+
* The `lib/` folder is produced by `babel` using either the `npm run build`, `npm run watch`, or the `npm run prepare` step.
84+
* The `npm run prepare` step is automatically invoked when your package depends on forked parse-server installed via git for example using `npm install --save git+https://github.com/[username]/parse-server#[branch/commit]`.
8385

8486
### Troubleshooting
8587

@@ -90,7 +92,10 @@ Once you have babel running in watch mode, you can start making changes to parse
9092
*Answer*: The easiest way is to install [Jasmine Test Explorer](https://marketplace.visualstudio.com/items?itemName=hbenl.vscode-test-explorer), it will let you run selectively tests and debug them.
9193

9294
*Question*: How do I deploy my forked version on my servers?<br/>
93-
*Answer*: In your `package.json`, update the `parse-server` dependency to `https://github.com/MY_USERNAME/parse-server#MY_FEATURE`. Run `npm install`, commit the changes and deploy to your servers.
95+
*Answer*: In your `package.json`, update the `parse-server` dependency to `https://github.com/[username]/parse-server#[branch/commit]`. Run `npm install`, commit the changes and deploy to your servers.
96+
97+
*Question*: How do I deploy my forked version using docker?<br/>
98+
*Answer*: In your `package.json`, update the `parse-server` dependency to `https://github.com/[username]/parse-server#[branch/commit]`. Make sure the `npm install` step in your `Dockerfile` is running under non-privileged user for the ``npm run prepare`` step to work correctly. For official node images from hub.docker.com that non-privileged user is `node` with `/home/node` working directory.
9499

95100

96101
### Please Do's

0 commit comments

Comments
 (0)