Граф коммитов

13 Коммитов

Автор SHA1 Сообщение Дата
Matjaž Horvat 3244c475af
Remove unused environment variable from app.json (#3197) 2024-04-30 13:16:30 +02:00
Matjaž Horvat 3d51fba96c
Upgrade Django to 4.2.11 (#3183)
* pytest.yield_fixture is a deprecated alias for pytest.fixture

* Update Django dev dependencies

* Update bleach

* Upgrade existing dependencies within the given constraints of the input files

* Fix jinja after update

* Update pip-tools

* Update django-* libraries

* Upgrade graphene-django

* Upgrade Django to 4.0

* Drop pytz

* ALLOWED_HOSTS must be a list

* Upgrade Django to 4.1

* Add workaround for the Raygun AttributeError

See:
https://github.com/MindscapeHQ/raygun4py/issues/108

* Avoid ValueError when instance doesn't have a primary key value but relationship is used.

See:
7ba6ebe914

* Upgrade Django to 4.2.11

* Drop pytz as a direct requirement
2024-04-24 21:31:23 +02:00
Matjaž Horvat cfbc8d2bbc
Upgrade Postgres to version 15 in the app.json file (#2967) 2023-09-22 19:24:15 +02:00
Eemeli Aro 5a2b145170
Drop remnants of in-context localization (#2862)
* Drop pontoon/in-context/

* Drop subpages

* Drop project links, url & width fields

* Drop pontoon.js

* Drop remaining mentions of in-context localization
2023-06-15 13:59:23 +03:00
Matjaž Horvat ca67f5d312
Add support for Google AutoML Translation (#2648)
* Gracefully handle Google AutoML error when credentials not set

* Prevent app crash on Heroku by forcing protobuf to use Python for parsing

By default, protobuf uses C++ for parsing. The library includes prebuilt binary modules for Apple silicon, which my local box uses, so for me the
library works as expected without this hack. I only noticed that's not the case for everyone after deploying to the stage server on Heroku.

Read more:
https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
https://developers.google.com/protocol-buffers/docs/reference/python-generated#sharing-messages

* Add buildpack needed for authentication using Google Cloud service accounts

And while we're at it, let's remove the unused buildpack.
2022-11-07 11:51:04 +01:00
Eemeli Aro 9faea69c20
Set `tabWidth: 2` in Prettier config (#2438)
* chore: Update Prettier config, setting tabWidth:2

* style: Apply updated Prettier styles

If you need to rebase work past this style change, do as follows:

0. Consider this to be commit `commitA`, replacing that with its id in the following.
1. To make sure mistakes aren't fatal, assign a second branch to your current work.
2. Rebase your branch on the commit immediately before this one, commitA~
3. Run the following command at the root of the repo:

    git rebase --strategy-option=theirs \
      --exec 'npx prettier --write . && git add -u && git commit --amend --no-edit' \
      commitA

That will take a short while esp. if you have multiple commits,
as it runs Prettier on everything for every commit.
If you've deleted files, the rebase may drop down to interactive mode
and have you `git rm` as appropriate, then `git rebase --continue`.

You should end up with just your changes in your branch,
prettily formatted. To validate that,
apply the same Prettier config change to your original branch,
reformat the files with `npm run prettier`,
and then compare the results with the rebased branch.

* chore: Clean up lint configs
2022-03-03 09:46:35 +01:00
Woosuk Park 11f2ea0b2d
Fix bug 1657587: Update Raygun plan name (#1665) 2020-08-06 14:04:42 +02:00
Jarek cc203a8cd1
Fix bug 1567400: Provide the VCS identity via the environment variables (#1649) 2020-07-05 20:25:18 +02:00
Adrian Gaudebert ba8c79693b
No bug - Update PostgreSQL version to use on new Heroku deploys. (#1494) 2019-11-26 09:51:31 +01:00
Jarek 3bae3f072c Fix bug 1595149: Fix Deploy to Heroku deployment (#1484)
Don't build frontend assets in the Heroku post deployment script
and disable the debug flag.
2019-11-12 23:14:03 +01:00
Jarek 16dec4001d Fix bug 1496449: Change the cache backend (#1097)
Replace django-pylibmc with django-bmemcached, which is recommended by
other Heroku users. We also update app.js (used during Deploy with
Heroku button) and docs to use Memcachier add-on instead of Memcached
Cloud.
2018-10-10 11:04:06 +02:00
Jarek 5d4f67103a Fix bug 1407532: Fix "Deploy to Heroku" button (#735)
* Update version of buildpack for git submodules
* Add SITE_URL setting to app.json and mark as required
* Remove code responsible for automatic discovery of SITE_URL after a
  deploy on Heroku
* Add runtime.txt and set python2 as the default for python buildpack
2017-10-17 00:06:30 +02:00
Jarek e5360fadf5 Fix bug 1316171: 1-click deploy to Heroku (#468)
* Add support for app.json.
2016-11-16 00:01:50 +01:00