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
If using Supabase CLI version 2.20.4 or later, you need to make a one-time fix to the migration file:
102
-
103
-
Edit `supabase/migrations/20230524173605_remote_commit.sql` and comment out line 13:
104
-
```sql
105
-
-- CREATE EXTENSION IF NOT EXISTS "pgsodium" WITH SCHEMA "pgsodium";
106
-
```
107
-
108
-
**Why this is needed:**
109
-
- Newer Supabase CLI versions don't pre-create the `pgsodium` schema in local development
110
-
- Supabase is [deprecating the pgsodium extension](https://supabase.com/docs/guides/database/extensions/pgsodium) and does not recommend its use for new projects
111
-
- Recogito doesn't use pgsodium's encryption features
112
-
- Your data remains secure: **Supabase projects are encrypted at rest by default** (SOC2 & HIPAA compliant)
113
-
114
-
**Production deployments:**
115
-
If your production instance was created before this change and already has pgsodium installed, it will continue to work. However, the extension is not actively used by Recogito, so this change is safe for all environments.
116
-
:::
117
-
118
100
2.**Start Supabase locally**
119
101
120
102
```bash
@@ -200,36 +182,26 @@ docker --version
200
182
The `supabase db reset` command only runs migrations - it doesn't populate roles and groups from config.json.
201
183
:::
202
184
203
-
7.**Create test users**
185
+
7.**Create test users and run tests**
186
+
187
+
Recogito Server has a number of `Jest` tests that are in the `jest/tests/projects.test.ts` file. These tests verify some base functionality.
188
+
189
+
To simplify the process going forward, modify the `run_tests.sh` file to be executable:
204
190
205
191
```bash
206
-
export SUPABASE_HOST=http://localhost:54321
207
-
export SUPABASE_SERVICE_KEY=<service_role_key from step 2>
Copy file name to clipboardExpand all lines: src/content/docs/guides/self-hosting.mdx
+41-24Lines changed: 41 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,7 @@ ssh root@your_server_ip
109
109
Update the system:
110
110
```bash
111
111
apt update
112
+
apt upgrade
112
113
```
113
114
114
115
Create a new user with sudo privileges:
@@ -125,6 +126,13 @@ ufw enable
125
126
ufw status
126
127
```
127
128
129
+
Best practice is to not utilize the `root` login except in special circumstances. Go ahead and exit the instance and SSH in with the new `recogito` user.
130
+
131
+
```bash
132
+
exit
133
+
ssh recogito@your_server_ip
134
+
```
135
+
128
136
### 2. Install Nginx
129
137
130
138
Install and configure the web server:
@@ -214,31 +222,31 @@ Use [Supabase JWT Generator](https://supabase.com/docs/guides/self-hosting/docke
0 commit comments