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
Copy file name to clipboardExpand all lines: docs/CONTRIBUTING.md
+16-14
Original file line number
Diff line number
Diff line change
@@ -19,10 +19,10 @@ copying path '/nix/store/v2gvj8whv241nj4lzha3flq8pnllcmvv-ignore-5.2.0.tgz' from
19
19
20
20
If [direnv](https://direnv.net/) is installed and the [hooks are configured](https://direnv.net/docs/hook.html) then the development environment can be _automatically instantiated_ by creating the following `.envrc`, thus removing the need to run `nix-shell` by hand!
21
21
22
-
```
23
-
$ cd ~/code/coder
24
-
$ echo "use nix" >.envrc
25
-
$ direnv allow
22
+
```shell
23
+
cd~/code/coder
24
+
echo"use nix">.envrc
25
+
direnv allow
26
26
```
27
27
28
28
Now, whenever you enter the project folder, `direnv` will prepare the environment for you:
@@ -86,12 +86,14 @@ You can test your changes by creating a PR deployment. A PR deployment can be tr
86
86
1. By commenting on the PR with `/deploy-pr`
87
87
2. By running `./scripts/deploy-pr.sh`
88
88
3. Available options
89
-
-`-s` or `--skip-build`, the image will not be built again, and the last image will be used.
90
-
-`-e EXPERIMENT1,EXPERIMENT2` or `--experiments EXPERIMENT1,EXPERIMENT2`, will enable the specified experiments.
91
-
-`-n` or `--dry-run` will display the context without deployment. e.g., branch name and PR number, etc.
92
-
-`-y` or `--yes`, will skip the CLI confirmation (only valid for the `./scripts/deploy-pr.sh`)
89
+
-`-s` or `--skip-build`, the image will not be built again, and the last image will be used.
90
+
-`-e EXPERIMENT1,EXPERIMENT2` or `--experiments EXPERIMENT1,EXPERIMENT2`, will enable the specified experiments.
91
+
-`-n` or `--dry-run` will display the context without deployment. e.g., branch name and PR number, etc.
92
+
-`-y` or `--yes`, will skip the CLI confirmation (only valid for the `./scripts/deploy-pr.sh`)
93
+
94
+
> Note: all flags can be used with both `./scripts/deploy-pr.sh` and `/deploy-pr` comment on the PR.
93
95
94
-
> Note: all flags can be used with both `./scripts/deploy-pr.sh` and `/deploy-pr` comment on the PR,
96
+
> Note: You need to be a member or collaborator of the of [coder](github.com/coder) GitHub organization to be able to deploy a PR.
95
97
96
98
Once the deployment is finished, a unique link and credentials will be posted in the [#pr-deployments](https://codercom.slack.com/archives/C05DNE982E8) Slack channel.
97
99
@@ -148,9 +150,9 @@ To create a full dump, run a fully fledged Coder deployment and use it to
148
150
generate data in the database. Then shut down the deployment and take a snapshot
149
151
of the database.
150
152
151
-
```
152
-
$ mkdir -p coderd/database/migrations/testdata/full_dumps/v0.12.2 && cd $_
153
-
$ pg_dump "postgres://coder@localhost:..." -a --inserts >000069_dump_v0.12.2.up.sql
0 commit comments