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
* devenv?
* devenv works on desktop
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* devenv works on koi
* submodule init
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* remove bootstrap symlink
* pkgs.python311 instead of nixpkgs-python
* less bullshit from cachix
* refine README.md
* devenv update
---------
Co-authored-by: Jaysa Garcia <jaysa@ginger.ocf.berkeley.edu>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,24 @@ ocfweb
7
7
[The main ocf website.](https://www.ocf.berkeley.edu/)
8
8
9
9
10
-
## Working on `ocfweb`
10
+
## Working on `ocfweb` on the ocfstaff remote dev server
11
+
12
+
1. Run `devenv up`
13
+
- It may take about several minutes for all of the dependencies to install the first time. Give it at least 10 min.
14
+
- You will see a process-compose tui appear, with a process called "web" and the logs visible. Your user's port is what is generated in the log line `Running on https://koi.ocf.berkeley.edu:YOUROWNPORT`, based on your uid. This is to avoid conflicts with other users who might also be running dev servers on koi.
15
+
2. Open an SSH tunnel on your local host (**not** on `koi` or other OCF servers): `ssh -L YOUROWNPORT:localhost:YOUROWNPORT koi`
16
+
- to avoid this extra step in the future, add the following to your `~/.ssh/config`:
17
+
```
18
+
Host koi
19
+
HostName koi.ocf.berkeley.edu
20
+
LocalForward YOUROWNPORT localhost:YOUROWNPORT
21
+
```
22
+
3. Go to https://localhost:YOUROWNPORT in your local browser!
0 commit comments