Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the README according to the latest updates #449

Merged
merged 3 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 5 additions & 25 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Installation

## Development Environment Deployment
## Development Environment

- Clone git repo `git clone https://github.com/qgis/QGIS-Django.git`
- Run `$ pwd` in order to get your current directory
Expand Down Expand Up @@ -45,8 +45,12 @@ This command ensures that the search index accurately reflects the current state

For more information about make commands, please see the full docs [here](./dockerize/README.md).

## Production Environment
For the production environment, please see the the private repo of the System Administration Documentation.

---


### Setup git-hooks and local linting

In the root directory of the repo, run:
Expand Down Expand Up @@ -194,27 +198,3 @@ $ cd dockerize
$ make dbrestore
```

---

## Deploy Update with Rancher

**TO BE DEPRECATED**

- Go to [https://rancher.qgis.org](https://rancher.qgis.org)
- Click the home icon in the top left corner, and choose the environment: `plugins.qgis.org`
- You will be redirected to User Stacks page, choose the plugins stack by clicking on `plugins` link
- Next, let's go inside the container, click on `uwsgi` link.

![image](https://user-images.githubusercontent.com/178003/99949715-65f55d00-2d73-11eb-929c-966a7b2877a7.png)

- In Containers tab, click on tripe-dot icon > `Execute Shell`

![image](https://user-images.githubusercontent.com/40058076/102454128-7352ee00-4078-11eb-80aa-f782c6ea9f6f.png)

Now you are inside the container and ready to deploy your update.

![image](https://user-images.githubusercontent.com/40058076/102455185-1ce6af00-407a-11eb-8318-3e084b24c095.png)
- Pull the latest commit: `git pull origin master`
- Run migration: `python manage.py migrate`
- Run collectstatic: `python manage.py collectstatic`
- Reload uwsgi: `uwsgi --reload /tmp/django.pid`
Binary file added img/Docker_Services.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 4 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ For licensing information, please read the COPYING file included in this directo

For setup, installation and backup notes, please read [INSTALL](INSTALL.md) included in this directory.

For setting up a local development environment using Vagrant please read the Vagrant [README](vagrant_assets/README.md).

To contribute to this project, please contact Tim Sutton - tim@kartoza.com


Expand All @@ -22,14 +20,14 @@ Tim Sutton 2010

## Admin

To update QGIS versions, go to **[Admin](https://plugins.qgis.org/admin/)** -> **[Site preferences](https://plugins.qgis.org/admin/preferences/sitepreference/)**.
QGIS versions are updated automatically from a scheduled task. To update QGIS versions manually, go to **[Admin](https://plugins.qgis.org/admin/)** -> **[Site preferences](https://plugins.qgis.org/admin/preferences/sitepreference/)**.

## Tech stack

![image](https://user-images.githubusercontent.com/178003/91535744-8c8a3000-e90b-11ea-8ca3-b6ce1bb910bd.png)
![image](./img/Docker_Services.png)

This application is based on Django, written in python and deployed on the server using
docker and rancher.
This application is based on Django, written in Python and deployed on the server using
docker-compose.

## Token based authentication

Expand Down