Skip to content

Commit ae5b81c

Browse files
Apply suggestions from code review
Co-authored-by: Honza Javorek <[email protected]>
1 parent 0a4e13c commit ae5b81c

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

sources/academy/tutorials/apify_actors/adding_rapidapi_project.mdx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ app.use(express.json());
6060
// Rest of the logic
6161
```
6262

63-
**Tip:** The Apify platform performs readiness checks by sending GET requests to `/` with the `x-apify-container-server-readiness-probe` header. For better resource efficiency, consider checking for this header and returning a simple response early, rather than processing it as a full request. This optimization is particularly useful for resource-intensive Actors.
63+
:::tip
64+
The Apify platform performs readiness checks by sending GET requests to `/` with the `x-apify-container-server-readiness-probe` header. For better resource efficiency, consider checking for this header and returning a simple response early, rather than processing it as a full request. This optimization is particularly useful for resource-intensive Actors.
65+
:::
6466

65-
```jsx
67+
```js
6668
app.get('*', (req, res) => {
6769
if (req.headers['x-apify-container-server-readiness-probe']) {
6870
console.log('Readiness probe');
@@ -73,27 +75,27 @@ app.get('*', (req, res) => {
7375

7476
### Step 3: Test your Actor locally
7577

76-
Once you’ve added the Actor logic, you can test your Actor locally with the following command:
78+
Once you’ve added the Actor logic, test your Actor locally with the following command:
7779

78-
```jsx
80+
```bash
7981
apify run
8082
```
8183

82-
Now, you can check that your server is running. For example, check your `/health` endpoint, or any other alternative.
84+
Now, check that your server is running. Check one of your endpoints, for example `/health`.
8385

8486
### Step 4: Deploy your Actor to Apify
8587

8688
You can now push your Actor to [Apify Console](https://console.apify.com/) with the following command:
8789

88-
```jsx
90+
```bash
8991
apify push
9092
```
9193

9294
If you’re doing `apify push` for the first time, first run `apify login`. It authenticates your Apify account and saves your credentials locally.
9395

9496
### Step 5: Run your Actor
9597

96-
After the deployment of your Actor, you’ll see a similar output in the terminal:
98+
After pushing your Actor to the platform, in the terminal you’ll see an output similar to this:
9799

98100
```bash
99101
2025-10-03T07:57:13.671Z ACTOR: Build finished.
@@ -102,11 +104,11 @@ Actor detail https://console.apify.com/actors/aOcUYdkQ28ResWFF9
102104
Success: Actor was deployed to Apify cloud and built there.
103105
```
104106

105-
You can click the Actor detail link, or go to `Apify Console > My Actors`, and click on your Actor. Now, click on the Settings tab, and enable **Actor Standby**:
107+
You can click the **Actor detail** link, or go to **Apify Console > My Actors**, and click on your Actor. Now, click on the Settings tab, and enable **Actor Standby**:
106108

107109
![Standby Actor](.//adding_rapidapi_project/standby.png)
108110

109-
:::info Actors can run in two modes
111+
:::info Two modes of Actors
110112

111113
Actors can run in two modes: as batch processing jobs that execute a single task and stop, or in **Standby mode** as a web server. For use cases like deploying an API that needs to respond to incoming requests in real-time, Standby mode is the best choice. It keeps your Actor running continuously and ready to handle HTTP requests like a standard web server.
112114

@@ -116,7 +118,7 @@ Once you’ve saved the settings, go to the **Standby** tab, and click the **Tes
116118

117119
## Next steps
118120

119-
Ready to **monetize your Actor and start earning**? Check out these guides:
121+
Ready to monetize your Actor and start earning? Check out these guides:
120122

121123
- [Set up monetization for your Actor](https://docs.apify.com/platform/actors/publishing/monetize)
122124
- [Publish your Actor on Apify Store](https://docs.apify.com/platform/actors/publishing/publish)

0 commit comments

Comments
 (0)