You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add instructions to launch a compatible Docker Postgres (#5915)
* Add instructions to launch a Docker Postgres
* Update CONTRIBUTING.md
Co-Authored-By: Tom Fox <[email protected]>
* Update CONTRIBUTING.md
Co-Authored-By: Tom Fox <[email protected]>
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+14-1
Original file line number
Diff line number
Diff line change
@@ -58,14 +58,27 @@ Once you have babel running in watch mode, you can start making changes to parse
58
58
59
59
If your pull request introduces a change that may affect the storage or retrieval of objects, you may want to make sure it plays nice with Postgres.
60
60
61
-
* Run the tests against the postgres database with `PARSE_SERVER_TEST_DB=postgres npm test`. You'll need to have postgres running on your machine and setup [appropriately](https://github.com/parse-community/parse-server/blob/master/.travis.yml#L37)
61
+
* Run the tests against the postgres database with `PARSE_SERVER_TEST_DB=postgres npm test`. You'll need to have postgres running on your machine and setup [appropriately](https://github.com/parse-community/parse-server/blob/master/.travis.yml#L37) or use [`Docker`](#run-a-parse-postgres-with-docker).
62
62
* The Postgres adapter has a special debugger that traces all the sql commands. You can enable it with setting the environment variable `PARSE_SERVER_LOG_LEVEL=debug`
63
63
* If your feature is intended to only work with MongoDB, you should disable PostgreSQL-specific tests with:
64
64
65
65
-`describe_only_db('mongo')` // will create a `describe` that runs only on mongoDB
66
66
-`it_only_db('mongo')` // will make a test that only runs on mongo
67
67
-`it_exclude_dbs(['postgres'])` // will make a test that runs against all DB's but postgres
68
68
69
+
#### Run a Parse Postgres with Docker
70
+
71
+
To launch the compatible Postgres instance, copy and paste the following line into your shell:
If you want to make changes to [Parse Server Configuration][config] add the desired configuration to [src/Options/index.js][config-index] and run `npm run definitions`. This will output [src/Options/Definitions.js][config-def] and [src/Options/docs.js][config-docs].
0 commit comments