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: CONTRIBUTING.md
+27-6Lines changed: 27 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,16 +27,12 @@ The goal is to make the common use-cases exposed via simple controls on UI while
27
27
First, you need a Captain instance running in debug mode, this can be a remote server, a VM on your local machine,
28
28
or your local machine itself. Needless to say, Docker is required (same minimum version as mentioned in README). Ubuntu is the best dev environment for CapRover.
29
29
30
-
> Docker for Mac users: You need to add `/captain` to shared paths.
31
-
> To do so, click on the Docker icon -> Preferences -> Ressources -> File Sharing and add `/captain`
32
-
> This is not possible in Catalina or above versions. You can try your luck by changing `CAPTAIN_BASE_DIRECTORY` in `src/utils/CaptainConstants.ts` and in `dev-scripts/dev-clean-run-as-dev.sh` but it might be best to develop in a linux VM for best results.
33
-
34
30
Log in to your machine, clone the git repo and run the following lines:
35
-
31
+
#### On Linux and Windows
36
32
```bash
37
33
$ npm install
38
34
$ npm run build
39
-
$ ./dev-scripts/dev-clean-run-as-dev.sh
35
+
$ sudo ./dev-scripts/dev-clean-run-as-dev.sh
40
36
```
41
37
42
38
You are good to go! You can run the following line to see the logs for the back-end service.
@@ -45,6 +41,31 @@ You are good to go! You can run the following line to see the logs for the back-
45
41
npm run dev
46
42
```
47
43
44
+
#### On macOs
45
+
##### Prepare your system (for Catalina and above)
46
+
Because of security restriction we have more step to apply on macOs.
47
+
Create a folder wherever you want (for me it will be /opt/captain).
48
+
Link this folder to the root folder (Apple does not allow to create folder on the root but you can do it with a symb link by adding the file in `/etc/synthetic.conf`[see](https://stackoverflow.com/questions/58396821/what-is-the-proper-way-to-create-a-root-sym-link-in-catalina))
49
+
(don't panic id the file does not exist, if you create it will work well.)
50
+
1)`sudo vi /etc/synthetic.conf`
51
+
2) add `captain opt/captain` into this file (note this is a tab and not a space ((Ctrl-V + Tab) character))
52
+
3) reboot
53
+
4) Prepare your docker system
54
+
55
+
##### Prepare your docker (for all macOs User)
56
+
57
+
> You need to add `/captain` to shared paths.
58
+
> To do so, click on the Docker icon -> Preferences -> Ressources -> File Sharing and add `/captain`
0 commit comments