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
@@ -62,8 +61,6 @@ branch are tagged into a release periodically.
62
61
pnpm run docker
63
62
```
64
63
65
-
This will also start and run a local instance of [pgAdmin](https://www.pgadmin.org/) on [localhost:5480](http://localhost:5480), preconfigured with email `admin@example.com` and pwd `admin`. Then use `postgres` as the password to the Trigger.dev server.
66
-
67
64
9. Migrate the database
68
65
```
69
66
pnpm run db:migrate
@@ -88,7 +85,7 @@ branch are tagged into a release periodically.
88
85
89
86
## Manual testing using v3-catalog
90
87
91
-
We use the `<root>/references/v3-catalog` subdirectory as a staging ground for testing changes to the SDK (`@trigger.dev/sdk` at `<root>/packages/trigger-sdk`), the Core package (`@trigger.dev/core` at `<root>packages/core`), the CLI (`trigger.dev` at `<root>/packages/cli-v3`) and the platform (The remix app at `<root>/apps/webapp`). The instructions below will get you started on using the `v3-catalog` for local development of Trigger.dev (v3).
88
+
We use the `<root>/test-projects/v3-catalog` subdirectory as a staging ground for testing changes to the SDK (`@trigger.dev/sdk` at `<root>/packages/trigger-sdk`), the Core package (`@trigger.dev/core` at `<root>packages/core`), the CLI (`trigger.dev` at `<root>/packages/cli-v3`) and the platform (The remix app at `<root>/apps/webapp`). The instructions below will get you started on using the `v3-catalog` for local development of Trigger.dev (v3).
92
89
93
90
### First-time setup
94
91
@@ -109,10 +106,10 @@ pnpm run build --filter trigger.dev
109
106
pnpm i
110
107
```
111
108
112
-
5. Change into the `<root>/references/v3-catalog` directory and authorize the CLI to the local server:
109
+
5. Change into the `<root>/test-projects/v3-catalog` directory and authorize the CLI to the local server:
113
110
114
111
```sh
115
-
cdreferences/v3-catalog
112
+
cdtest-projects/v3-catalog
116
113
cp .env.example .env
117
114
pnpm exec trigger login -a http://localhost:3030
118
115
```
@@ -122,7 +119,7 @@ This will open a new browser window and authorize the CLI against your local use
122
119
You can optionally pass a `--profile` flag to the `login` command, which will allow you to use the CLI with separate accounts/servers. We suggest using a profile called `local` for your local development:
123
120
124
121
```sh
125
-
cdreferences/v3-catalog
122
+
cdtest-projects/v3-catalog
126
123
pnpm exec trigger login -a http://localhost:3030 --profile local
127
124
# later when you run the dev or deploy command:
128
125
pnpm exec trigger dev --profile local
@@ -141,7 +138,7 @@ The following steps should be followed any time you start working on a new featu
141
138
pnpm run dev --filter trigger.dev --filter "@trigger.dev/*"
142
139
```
143
140
144
-
3. Open another terminal window, and change into the `<root>/references/v3-catalog` directory.
141
+
3. Open another terminal window, and change into the `<root>/test-projects/v3-catalog` directory.
145
142
146
143
4. You'll need to run the following commands to setup prisma and migrate the database:
147
144
@@ -153,22 +150,22 @@ pnpm run generate:prisma
153
150
5. Run the `dev` command, which will register all the local tasks with the platform and allow you to start testing task execution:
154
151
155
152
```sh
156
-
# in <root>/references/v3-catalog
153
+
# in <root>/test-projects/v3-catalog
157
154
pnpm exec trigger dev
158
155
```
159
156
160
157
If you want additional debug logging, you can use the `--log-level debug` flag:
161
158
162
159
```sh
163
-
# in <root>/references/v3-catalog
160
+
# in <root>/test-projects/v3-catalog
164
161
pnpm exec trigger dev --log-level debug
165
162
```
166
163
167
164
6. If you make any changes in the CLI/Core/SDK, you'll need to `CTRL+C` to exit the `dev` command and restart it to pickup changes. Any changes to the files inside of the `v3-catalog/src/trigger` dir will automatically be rebuilt by the `dev` command.
168
165
169
166
7. Navigate to the `v3-catalog` project in your local dashboard at localhost:3030 and you should see the list of tasks.
170
167
171
-
8. Go to the "Test" page in the sidebar and select a task. Then enter a payload and click "Run test". You can tell what the payloads should be by looking at the relevant task file inside the `/references/v3-catalog/src/trigger` folder. Many of them accept an empty payload.
168
+
8. Go to the "Test" page in the sidebar and select a task. Then enter a payload and click "Run test". You can tell what the payloads should be by looking at the relevant task file inside the `/test-projects/v3-catalog/src/trigger` folder. Many of them accept an empty payload.
172
169
173
170
9. Feel free to add additional files in `v3-catalog/src/trigger` to test out specific aspects of the system, or add in edge cases.
174
171
@@ -180,14 +177,14 @@ To run the end-to-end tests, follow the steps below:
Copy file name to clipboardExpand all lines: ai/references/repo.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ This is a pnpm 8.15.5 monorepo that uses turborepo @turbo.json. The following wo
27
27
28
28
## References
29
29
30
-
- <root>/references/\* are test workspaces that we use to write and test the system. Not quite e2e tests or automated, but just a useful place to help develop new features
30
+
- <root>/test-projects/\* are test workspaces that we use to write and test the system. Not quite e2e tests or automated, but just a useful place to help develop new features
0 commit comments