| |
@@ -16,11 +16,19 @@
|
| |
|
| |
Podman is the recommended way of building fedora-websites.
|
| |
|
| |
- From the root of the repository, run the following commands to start a local server:
|
| |
+ From the root of the repository, run the following commands to build the necessary components:
|
| |
|
| |
```
|
| |
podman build -t fedora-websites .
|
| |
podman run -it --rm -v "$(pwd):/opt/:z" fedora-websites ./scripts/pull-translations.sh
|
| |
- podman run -it --rm -v "$(pwd):/opt/:z" fedora-websites python ./scripts/pull-magazine.py
|
| |
- podman run -it --rm -v "$(pwd):/opt/:z" fedora-websites python main.py
|
| |
+ podman run -it --rm -v "$(pwd):/opt/:z" fedora-websites python3 ./scripts/pull-magazine.py
|
| |
+ podman run -it --rm -v "$(pwd):/opt/:z" fedora-websites python3 main.py
|
| |
```
|
| |
+
|
| |
+ Now we are ready to run the development server:
|
| |
+
|
| |
+ ```
|
| |
+ podman run -it --rm -v "$(pwd):/opt/:z" -p 5000:5000 fedora-websites flask run --reload --host 0.0.0.0
|
| |
+ ```
|
| |
+
|
| |
+ You may now go to <http://localhost:5000/> in your browser of choice.
|
| |
This requires updating some dependencies to their python3 package name and updating the documentation for running a local build to reflect the python3 requirement.
This is basically a light touch up of PR 67[0]. Fixes issue 183[1].
[0] - https://pagure.io/fedora-web/websites/pull-request/67
[1] - https://pagure.io/fedora-web/websites/issue/183