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
Please feel free to contribute your tutorials or exercises by sending a pull request and adding yourself on the list.
21
21
22
-
To run locally in a Docker container, execute:
22
+
To run locally, first create a new file called `app.env` based on `app.env.example`.
23
+
(you don't need working credentials to run the website, just to execute code).
23
24
24
-
make run
25
+
### Running with Docker
25
26
26
-
This command will run learnpython.org website by default
27
+
Execute:
28
+
29
+
DEFAULT_DOMAIN=learnpython.org make run
30
+
31
+
This command will run learnpython.org website by default using Docker Compose.
27
32
28
33
To run a specific website, run with the DEFAULT_DOMAIN option set, as follows:
29
34
@@ -33,18 +38,22 @@ By default, the server process will run at http://localhost:5000.
33
38
34
39
The web server will locally compile and load all Markdown files into memory. The docker needs to be rebuilt upon any change in the Python code or the Markdown code.
35
40
36
-
To run the development server outside of a Docker, create a Python 3 virtualenv and install the requirements.
41
+
### Running without Docker (locally)
37
42
38
-
# create the virtualenv
39
-
mkvirtualenv interactive-tutorials
40
-
41
-
# install requirements
42
-
pip install -r requirements.txt
43
-
44
-
# run the development server. Replace learnpython.org with the domain you are working on e.g. learn-golang.org
45
-
python main.py -d learnpython.org
43
+
To run the development server outside of a Docker, run the following command once:
44
+
45
+
make build-local
46
+
47
+
And then run:
48
+
49
+
DEFAULT_DOMAIN=learn-js.org make run-local
46
50
47
51
52
+
### IDEOne Credentials
53
+
54
+
To make the IDEOne execution API work locally, you must obtain a username and password,
0 commit comments