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: sources/academy/glossary/tools/apify_cli.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
@@ -11,7 +11,7 @@ slug: /tools/apify-cli
11
11
12
12
---
13
13
14
-
The [Apify CLI](/cli) helps you create, develop, build and run Apify actors, and manage the Apify cloud platform from any computer. It can be used to automatically generate the boilerplate for different types of projects, initialize projects, remotely call actors on the platform, and run your own projects.
14
+
The [Apify CLI](/cli) helps you create, develop, build and run Apify Actors, and manage the Apify cloud platform from any computer. It can be used to automatically generate the boilerplate for different types of projects, initialize projects, remotely call Actors on the platform, and run your own projects.
Copy file name to clipboardExpand all lines: sources/academy/platform/apify_platform.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,11 +12,11 @@ slug: /apify-platform
12
12
13
13
---
14
14
15
-
The [Apify platform](https://apify.com) was built to serve large-scale and high-performance web scraping and automation needs. It provides easy access to compute instances ([actors](./getting_started/actors.md)), convenient request and result storages, proxies, scheduling, webhooks and more - all accessible through the **Console** web interface, [Apify's API](/api/v2), or our [JavaScript](/api/client/js) and [Python](/api/client/python) API clients.
15
+
The [Apify platform](https://apify.com) was built to serve large-scale and high-performance web scraping and automation needs. It provides easy access to compute instances ([Actors](./getting_started/actors.md)), convenient request and result storages, proxies, scheduling, webhooks and more - all accessible through the **Console** web interface, [Apify's API](/api/v2), or our [JavaScript](/api/client/js) and [Python](/api/client/python) API clients.
16
16
17
17
## Category outline {#this-category}
18
18
19
-
In this category, you'll learn how to become an Apify platform developer from the ground up. From creating your first account, to developing actors, this is your one-stop-shop for understanding how the platform works, and how to work with it.
19
+
In this category, you'll learn how to become an Apify platform developer from the ground up. From creating your first account, to developing Actors, this is your one-stop-shop for understanding how the platform works, and how to work with it.
Copy file name to clipboardExpand all lines: sources/academy/platform/deploying_your_code/deploying.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,43 +1,43 @@
1
1
---
2
2
title: Deploying
3
-
description: Push local code to the platform, or create a new actor on the console and integrate it with a Git repo to optionally automatically rebuild any new changes.
3
+
description: Push local code to the platform, or create a new Actor on the console and integrate it with a Git repo to optionally automatically rebuild any new changes.
4
4
sidebar_position: 5
5
5
slug: /deploying-your-code/deploying
6
6
---
7
7
8
8
# Deploying {#deploying}
9
9
10
-
**Push local code to the platform, or create a new actor on the console and integrate it with a Git repo to optionally automatically rebuild any new changes.**
10
+
**Push local code to the platform, or create a new Actor on the console and integrate it with a Git repo to optionally automatically rebuild any new changes.**
11
11
12
12
---
13
13
14
-
Once you've **actorified** your code, there are two ways to deploy it to the Apify platform. You can either push the code directly from your local machine onto the platform, or you can create a blank actor in the web interface, and then integrate its source code with a GitHub repository.
14
+
Once you've **actorified** your code, there are two ways to deploy it to the Apify platform. You can either push the code directly from your local machine onto the platform, or you can create a blank Actor in the web interface, and then integrate its source code with a GitHub repository.
15
15
16
16
## With a Git repository {#with-git-repository}
17
17
18
18
Before we deploy our project onto the Apify platform, let's ensure that we've pushed the changes we made in the last 3 lessons into our remote GitHub repository.
19
19
20
-
> The benefit of using this method is that any time you push to the Git repo, the code on the platform is also updated and the actor is automatically rebuilt. Also, you don't have to use a GitHub repository - you can use GitLab or any other service you'd like.
20
+
> The benefit of using this method is that any time you push to the Git repo, the code on the platform is also updated and the Actor is automatically rebuilt. Also, you don't have to use a GitHub repository - you can use GitLab or any other service you'd like.
21
21
22
-
### Creating the actor
22
+
### Creating the Actor
23
23
24
-
Before anything can be integrated, we've gotta create a new actor. Luckily, this is super easy to do. Let's head over to our [Apify Console](https://console.apify.com?asrc=developers_portal) and click on the **New** button, then select the **Empty** template.
24
+
Before anything can be integrated, we've gotta create a new Actor. Luckily, this is super easy to do. Let's head over to our [Apify Console](https://console.apify.com?asrc=developers_portal) and click on the **New** button, then select the **Empty** template.
25
25
26
26

In the **Source** tab on the new actor's page, we'll click the dropdown menu under **Source code** and select **Git repository**. By default, this is set to **Web IDE**.
32
+
In the **Source** tab on the new Actor's page, we'll click the dropdown menu under **Source code** and select **Git repository**. By default, this is set to **Web IDE**.
@@ -55,15 +55,15 @@ If you're logged in to the Apify CLI, the `apify push` command can be used to pu
55
55
56
56
One important thing to note is that you can use a `.gitignore` file to exclude files from being pushed. When you use `apify push` without a `.gitignore`, the full folder contents will be pushed, meaning that even the **storage** and **node_modules** will be pushed. These files are unnecessary to push, as they are both generated on the platform.
57
57
58
-
> The `apify push` command should only really be used for quickly pushing and testing actors on the platform during development. If you are ready to make your actor public, use a Git repository instead, as you will reap the benefits of using Git and others will be able to contribute to the project.
58
+
> The `apify push` command should only really be used for quickly pushing and testing Actors on the platform during development. If you are ready to make your Actor public, use a Git repository instead, as you will reap the benefits of using Git and others will be able to contribute to the project.
59
59
60
60
## Deployed! {#deployed}
61
61
62
-
Great! Once you've pushed your actor to the platform, you should see it in the list of actors under the **Actors** tab. If you used `apify push`, you'll have access to the **multifile editor** (discussed [here](../getting_started/creating_actors.md)).
62
+
Great! Once you've pushed your Actor to the platform, you should see it in the list of Actors under the **Actors** tab. If you used `apify push`, you'll have access to the **multifile editor** (discussed [here](../getting_started/creating_actors.md)).
63
63
64
-

64
+

65
65
66
-
The next step is to test your actor and experiment with the vast amount of features the platform has to offer.
66
+
The next step is to test your Actor and experiment with the vast amount of features the platform has to offer.
Copy file name to clipboardExpand all lines: sources/academy/platform/deploying_your_code/docker_file.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,13 @@ import TabItem from '@theme/TabItem';
14
14
15
15
---
16
16
17
-
The **Dockerfile** is a file which gives the Apify platform (or Docker, more specifically) instructions on how to create an environment for your code to run in. Every actor must have a Dockerfile, as actors run in Docker containers.
17
+
The **Dockerfile** is a file which gives the Apify platform (or Docker, more specifically) instructions on how to create an environment for your code to run in. Every Actor must have a Dockerfile, as Actors run in Docker containers.
18
18
19
-
> Actors on the platform are always run in Docker containers; however, they can also be run in local Docker containers. This is not common practice though, as it requires more setup and a deeper understanding of Docker. For testing, it's best to just run the actor on the local OS (this requires you to have the underlying runtime installed, such as Node.js, Python, Rust, GO, etc).
19
+
> Actors on the platform are always run in Docker containers; however, they can also be run in local Docker containers. This is not common practice though, as it requires more setup and a deeper understanding of Docker. For testing, it's best to just run the Actor on the local OS (this requires you to have the underlying runtime installed, such as Node.js, Python, Rust, GO, etc).
20
20
21
21
## Base images {#base-images}
22
22
23
-
If your project doesn’t already contain a Dockerfile, don’t worry! Apify offers [many base images](/sdk/js/docs/guides/docker-images) that are optimized for building and running actors on the platform, which can be found [here](https://hub.docker.com/u/apify). When using a language for which Apify doesn't provide a base image, [Docker Hub](https://hub.docker.com/) provides a ton of free Docker images for most use-cases, upon which you can create your own images.
23
+
If your project doesn’t already contain a Dockerfile, don’t worry! Apify offers [many base images](/sdk/js/docs/guides/docker-images) that are optimized for building and running Actors on the platform, which can be found [here](https://hub.docker.com/u/apify). When using a language for which Apify doesn't provide a base image, [Docker Hub](https://hub.docker.com/) provides a ton of free Docker images for most use-cases, upon which you can create your own images.
24
24
25
25
> Tip: You can see all of Apify's Docker images [on DockerHub](https://hub.docker.com/r/apify/).
26
26
@@ -38,9 +38,9 @@ FROM apify/actor-node:16
38
38
39
39
The rest of the Dockerfile is about copying the source code from the local filesystem into the container's filesystem, installing libraries, and setting the `RUN` command (which falls back to the parent image).
40
40
41
-
> If you are not using a base image from Apify, then you should specify how to launch the source code of your actor with the `CMD` instruction.
41
+
> If you are not using a base image from Apify, then you should specify how to launch the source code of your Actor with the `CMD` instruction.
42
42
43
-
Here's the Dockerfile for our Node.js example project's actor:
43
+
Here's the Dockerfile for our Node.js example project's Actor:
# You can also use any other image from Docker Hub.
79
79
FROM apify/actor-python:3.9
80
80
81
-
# Second, copy just requirements.txt into the actor image,
81
+
# Second, copy just requirements.txt into the Actor image,
82
82
# since it should be the only file that affects "pip install" in the next step,
83
83
# in order to speed up the build
84
84
COPY requirements.txt ./
@@ -100,7 +100,7 @@ RUN echo "Python version:" \
100
100
# for most source file changes.
101
101
COPY . ./
102
102
103
-
# Specify how to launch the source code of your actor.
103
+
# Specify how to launch the source code of your Actor.
104
104
# By default, the main.py file is run
105
105
CMD python3 main.py
106
106
@@ -111,10 +111,10 @@ CMD python3 main.py
111
111
112
112
## Examples {#examples}
113
113
114
-
The examples we just showed were for Node.js and Python, however, to drive home the fact that actors can be written in any language, here are some examples of some Dockerfiles for actors written in different programming languages:
114
+
The examples we just showed were for Node.js and Python, however, to drive home the fact that Actors can be written in any language, here are some examples of some Dockerfiles for Actors written in different programming languages:
115
115
116
116
<TabsgroupId="main">
117
-
<TabItemvalue="GO actor Dockerfile"label="GO actor Dockerfile">
117
+
<TabItemvalue="GO Actor Dockerfile"label="GO Actor Dockerfile">
118
118
119
119
```Dockerfile
120
120
FROM golang:1.17.1-alpine
@@ -130,7 +130,7 @@ CMD ["/example-actor"]
130
130
```
131
131
132
132
</TabItem>
133
-
<TabItemvalue="Rust actor Dockerfile"label="Rust actor Dockerfile">
133
+
<TabItemvalue="Rust Actor Dockerfile"label="Rust Actor Dockerfile">
134
134
135
135
```Dockerfile
136
136
# Image with prebuilt Rust. We use the newest 1.* version
<TabItemvalue="Julia actor Dockerfile"label="Julia actor Dockerfile">
166
+
<TabItemvalue="Julia Actor Dockerfile"label="Julia Actor Dockerfile">
167
167
168
168
```Dockerfile
169
169
FROM julia:1.7.1-alpine
@@ -182,4 +182,4 @@ CMD ["julia", "main.jl"]
182
182
183
183
## Next up {#next}
184
184
185
-
In the [next lesson](./deploying.md), we'll push our code directly to the Apify platform, or create and integrate a new actor on the Apify platform with our project's GitHub repository.
185
+
In the [next lesson](./deploying.md), we'll push our code directly to the Apify platform, or create and integrate a new Actor on the Apify platform with our project's GitHub repository.
Copy file name to clipboardExpand all lines: sources/academy/platform/deploying_your_code/index.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Deploying your code
3
-
description: In this course learn how to take an existing project of yours and deploy it to the Apify platform as an actor in just a few minutes!
3
+
description: In this course learn how to take an existing project of yours and deploy it to the Apify platform as an Actor in just a few minutes!
4
4
sidebar_position: 9
5
5
category: apify platform
6
6
slug: /deploying-your-code
@@ -11,29 +11,29 @@ import TabItem from '@theme/TabItem';
11
11
12
12
# Deploying your code to Apify {#deploying}
13
13
14
-
**In this course learn how to take an existing project of yours and deploy it to the Apify platform as an actor in just a few minutes!**
14
+
**In this course learn how to take an existing project of yours and deploy it to the Apify platform as an Actor in just a few minutes!**
15
15
16
16
---
17
17
18
-
This section will discuss how to use your newfound knowledge of the Apify platform and actors from the [**Getting started**](../getting_started/index.md) section to deploy your existing project's code to the Apify platform as an actor.
18
+
This section will discuss how to use your newfound knowledge of the Apify platform and Actors from the [**Getting started**](../getting_started/index.md) section to deploy your existing project's code to the Apify platform as an Actor.
19
19
20
-
Because actors are basically just chunks of code running in Docker containers, you're able to **_Actorify_** just about anything!
20
+
Because Actors are basically just chunks of code running in Docker containers, you're able to **_Actorify_** just about anything!
Though the majority of actors currently on the platform were written in Node.js, and despite the fact our current preferred languages are JavaScript and Python, there are a few examples of actors in other languages:
28
+
Though the majority of Actors currently on the platform were written in Node.js, and despite the fact our current preferred languages are JavaScript and Python, there are a few examples of Actors in other languages:
29
29
30
30
-[Actor written in Rust](https://apify.com/lukaskrivka/rust-actor-example)
> For all lessons in this section, we'll have examples for both Node.js and Python so that you can follow along in either language.
78
78
79
-
<!-- We've pushed this code to GitHub and are ready to turn it into an actor that takes any number of integers as input, adds them all up, then stores the solution as its output. -->
79
+
<!-- We've pushed this code to GitHub and are ready to turn it into an Actor that takes any number of integers as input, adds them all up, then stores the solution as its output. -->
80
80
81
81
## Next up {#next}
82
82
83
-
[Next lesson](./inputs_outputs.md), we'll be learning how to accept input into our actor as well as deliver output.
83
+
[Next lesson](./inputs_outputs.md), we'll be learning how to accept input into our Actor as well as deliver output.
0 commit comments