-
-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore-two-apache
- Loading branch information
Showing
108 changed files
with
2,178 additions
and
945 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# How to release | ||
|
||
## Staging environment | ||
|
||
This is automatically done by the CI of github, | ||
see `.github/workflows/container-build.yml`. | ||
|
||
The deployment uses docker compose with specific environments variables | ||
and the `docker/prod.yml` overlay. | ||
|
||
As soon as you merge a pull request in the `main` branch, | ||
the action is triggered. You can see it at | ||
https://github.com/openfoodfacts/openfoodfacts-server/actions/workflows/container-build.yml | ||
|
||
## Production environment | ||
|
||
Product Opener is deployed on a container in Proxmox. | ||
The container is a debian server, it must follow the `backend` container version. | ||
|
||
In the command lines, I use $SERVICE and $VERSION variables, | ||
corresponding to the service short name (off, opf, etc.) and the version tag. | ||
|
||
To deploy you need to execute the following steps: | ||
1. merge the Release Please pull request. | ||
This will create a new release / version tag on github | ||
1. update the code: | ||
```bash | ||
sudo -u off bash | ||
cd /srv/$SERVICE | ||
git fetch | ||
git checkout $VERSION | ||
``` | ||
1. verify every needed symlink is in place | ||
```bash | ||
sudo -u off scripts/deploy/verify-deployment.sh $SERVICE | ||
``` | ||
1. rebuild taxonomies and lang | ||
```bash | ||
sudo -u off bash | ||
cd /srv/$SERVICE | ||
source env/setenv.sh $SERVICE | ||
./scripts/taxonomies/build_tags_taxonomy.pl | ||
./scripts/build_lang.pl | ||
``` | ||
1. update the frontend assets you just downloaded | ||
```bash | ||
sudo -u off /srv/$SERVICE/scripts/deploy/install-dist-files.sh $VERSION $SERVICE | ||
``` | ||
1. restart services | ||
```bash | ||
sudo systemctl daemon-reload | ||
sudo systemctl restart nginx | ||
sudo systemctl stop apache2 cloud_vision_ocr@$SERVICE.service minion@$SERVICE.service | ||
sudo systemctl start apache2 cloud_vision_ocr@$SERVICE.service minion@$SERVICE.service | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
html/images/attributes/src/nutriscore-not-applicable-new-de.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
html/images/attributes/src/nutriscore-not-applicable-new-en.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
html/images/attributes/src/nutriscore-not-applicable-new-fr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
html/images/attributes/src/nutriscore-not-applicable-new-lb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
html/images/attributes/src/nutriscore-not-applicable-new-nl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.