0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 00:47:50 +01:00
Commit Graph

39 Commits

Author SHA1 Message Date
Kyle Yannelli
c941cc1de2
fix: improper builds from typo in deploy-hobby (#25551) 2024-10-12 20:58:56 +01:00
Paul D'Ambra
8c5d063903
fix: source env after changing it (#25518) 2024-10-10 16:49:44 +00:00
Paul D'Ambra
a1369b3c83
fix: encryption salt keys for self hosted take 4 (#25504) 2024-10-10 14:57:43 +02:00
Paul D'Ambra
c0368cc422
fix: encryption salt key is not any random string (#25483) 2024-10-09 18:25:44 +01:00
Paul D'Ambra
c99d8250eb
fix: encryption salt keys for the plugin server (#25454) 2024-10-09 09:26:48 +01:00
Sandy Spicer
23a789d9fe
chore: upgrade python to 3.11 🐍 (#22932)
🐍
2024-06-21 16:45:42 +00:00
feedanal
9f96b34a7f
fix: enable compression for reverse_proxy responses (#22237)
enable compression for reverse_proxy responses

compression is disabled in caddy by default, rendering frontend PAINFULLY slow (as if Django is not slow enough already)
2024-06-04 11:08:25 +01:00
Ben White
a8bcc672a8
feat: Swap ingestion endpoints to new .i.posthog.com ones (#20736) 2024-04-22 11:03:14 +02:00
danielxnj
b0a9ce2818
chore: hobby deployment on PR (#18733)
* Check docker before installing it
2023-11-29 18:16:15 -05:00
James Greenhill
61cf6d8bd1
chore: set RESTART_MODE to list for needrestart to prevent halt (#18285) 2023-10-30 16:24:00 -07:00
James Greenhill
dc30182fff
chore: ensure DEBIAN_FRONTEND=noninteractive for hobby deploy (#18284) 2023-10-30 16:12:35 -07:00
Michael Matloka
08eab1f9c0
style: Fix "Posthog" capitalization (#15426)
* style: Fix "Posthog" capitalization

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-09 18:31:34 +02:00
Tomás Farías Santana
794c340e81
fix: Set hobby deployments to 'latest' by default (#14956) 2023-04-06 10:09:51 -07:00
Tomás Farías Santana
c30bdc4c82
fix: Checkout git tag corresponding to Docker image (#14909) 2023-03-29 17:07:34 +02:00
Tomás Farías Santana
6f39b68dd2
fix: Add missing script to start temporal worker (#14908) 2023-03-27 16:59:29 +02:00
James Greenhill
9b45f3c5bc
fix: Hobby ci fixes so that the branch is actually tested (#13085)
* chore: test hobby ci

* tweak how hobby is tested

* fix was caddy related

* Fix up passing the branch

* send GITHUB_SHA

* ok ok use
2022-12-01 20:45:00 -08:00
James Greenhill
696028e800
feat: simplify the docker-compose setup so we do less version coordinations (#12998)
* feat: remove version from docker compose to support new spec

* feat: simplify the docker-compose setup so we do less version coordinations

* update hobby bin

* bump docker-compose version for hobby for extends compat

* move ci to ubuntu-latest

* Revert "move ci to ubuntu-latest"

This reverts commit a0462adfec.

* use docker compose for github ci

* correct comments on base
2022-11-29 20:50:42 +00:00
James Greenhill
ddc7d44a1e
feat: hobby ci script to e2e test hobby deploy on DO (#12153)
* feat: hobby ci script to e2e test hobby deploy on DO

* checkpoint

* script in a decent spot

* fixes

* more fixes for script

* github action to run python

* Update env var for DO token

* hobby test name

* run on pull requests

* action fixes

* actions fixes

* actions fixes

* actions fixes

* support release testing as well

* actions fixes

* retry tweaks. GHA are a pain

* exit 0 for success and 1 for failure

* handle signals better

* fixes

* retry deletion

* Don't import packages that don't exist

* kwargs the args

* break out of retries

* done

* don't run on master pushes

* Use staging for lets encrypt

* feedback

* feedback timeout context

* feedbacks

* fix issue where response could be referenced before initialization
2022-10-22 02:47:13 +00:00
James Greenhill
9f7403cfbe
fix(hobby): if you are running from cloud_init this fixes a break in the boot (#12172) 2022-10-10 16:43:22 +00:00
Harry Waye
cd56870754
fix(hobby): don't start frontend in hobby deploy (#12118)
We are running yarn install and starting the frontend dev server for
hobby. This isn't necessary or desired as the image is prebuilt.

Note we also need to update the /compose/start as well, in the upgrade.
It could probably do with a refactor but I'm not going to do that now.
2022-10-06 09:25:57 -07:00
James Greenhill
3ba2221cfb
chore: make params for hobby passable at CLI level for testing (#12057) 2022-09-30 18:16:53 +00:00
James Greenhill
3029cfa9a8
fix: improve hobby deploy and reduce unneccessary logging (#11959)
* fix: improve hobby deploy and reduce unneccessary logging

* fix typo

* typo fix missing a /

* remove last enter
2022-09-23 16:42:09 -07:00
James Greenhill
924979ac1b
feat: simplify hobby deploy wizard (#11944)
* feat: simplify hobby deploy wizard

* remove env var that is not

* remove more unneeded env vars

* Add link to docs
2022-09-22 15:44:22 -07:00
James Greenhill
ce61f53814
fix: Have hobby wait for stack to be up through caddy (#11940)
buxfix: Have hobby wait for stack to be up through caddy
2022-09-22 13:50:06 -07:00
James Greenhill
8f01f4b36b
feat: add tag parameter to hobby deploy wizard (#10430)
* feat: add tag parameter to hobby deploy wizard

* remove the comment
2022-06-24 15:31:13 -07:00
Marcus Hyett (PostHog)
5f6331010e
chore(hobby-deploy): Advise not to use IP address (#10241)
Advise users not to use IP address when setting up TLS for their hobby instance.
2022-06-20 10:10:52 +02:00
James Greenhill
8572bad0d2
fix: Move hobby to use latest until next release (#9928) 2022-05-23 16:14:16 -07:00
Guido Iaquinti
3f3f146b3e
chore(hobby deployments): various fixes (#9914)
* chore(hobby deployments): various fixes

* default do not check versions for current hobby release

Co-authored-by: James Greenhill <fuziontech@gmail.com>
2022-05-23 11:15:57 -07:00
0x1a8510f2
c776ee3583
refactor(hobby-deployment): More secure secret generation in deploy-hobby (#9485)
* More secure secret generation

Use a random source designed for secrets/crypto and apply a stronger hash function as MD5 is broken. This shouldn't have too much of an impact in this context, but better safe than sorry.

* Tune `head` params

Co-authored-by: Michael Matloka <dev@twixes.com>
2022-04-25 10:40:45 +00:00
Tiina Turban
8ba6168933
feat(async-migrations): Hobby upgrade to check async migrations first (#8899) 2022-03-09 14:42:15 +01:00
Tiina Turban
de831d9930
fix(hobby-deploy): loading enviroment variables (#8908) 2022-03-07 14:44:24 -08:00
James Greenhill
a451d2f2ce
Hobby: Enable deploying hobby stack behind a firewall with no ACME TLS (#8687) 2022-02-18 10:28:28 -08:00
James Greenhill
24eb2666bb
hobby: Wait for ClickHouse and for Postgres before starting (#8686) 2022-02-18 10:27:45 -08:00
Tim Glaser
b74c54d117
Add hobby upgrade script (#8289)
* Add hobby upgrade script

* Add hobby upgrade script

* Write env file

* Pull new image
2022-01-27 08:45:17 -08:00
James Greenhill
44e9feb04d
Fix docs for hobby and add upgrade instructions (#8233)
* Fix docs for hobby and add upgrade instructions

* swallow errors from stop command (should error normally)

* persist env vars in docker-compose for hobby

* remove .hobby from docker-compose

* make file easier to test

* make env vars easier to template

* use docker-compose from git instead of curl

* test envsubst params

* default for sentry because exceptions

* tweaks to default logic
2022-01-24 22:14:50 -08:00
Yakko Majuri
dc4aff3980
Revert "fix hobby deploy in 1.30.0 (#7701)" (#7702)
This reverts commit 18540ac96e.
2021-12-14 15:02:59 -08:00
Yakko Majuri
18540ac96e
fix hobby deploy in 1.30.0 (#7701) 2021-12-14 11:53:51 +00:00
Yakko Majuri
b56b141126
Special Migrations Runner (#7054 pt. 4) (#7446)
* add special migration definition and example

* types

* special migrations runner

* fix tests

* fix tests 2

* add clickhouse runner

* add temp fix for tests

* wip

* add special migrations api (#7448)

* wip new structure

* update example sourcing

* Update .gitignore

* yet another wip structure

* code quality

* cypress

* test docker image build

* implement resumable ops

* code quality

* add comments

* add warning

* add conditional requirements for migration

* add comment on is_required

* add dependency map

* wip dependencies and run migration on startup

* code quality

* fix bugs

* fix more bugs

* format

* types

* remove api from this branch

* types

* types

* update clickhouse script

* add is_migration_in_range util

* fix type

* fix runner

* add AUTO_START_SPECIAL_MIGRATIONS env var

* reset migration on start

* cleanup

* wip per op rollback

* prevent accidental status rollback

* add utils and definition test

* update example with rollback per op

* wip test special migration

* add first runner tests

* add runner tests

* add util for code paths

* fix test

* fix types

* fix types again

* cleanup

* cleanup

* add periodic healthcheck task tests

* remove unused imports

* safer row updates

* fix coalescing none checks

* code quality

* add docstrings

* fix

* fix deploys issue

* update scripts

* add delay

* address reviews

* address review comments

* address review comments

* address final comments

* fix import error

* fix tests

* remove unused imports

* fix tests

* fix task test

* remove unused return value

* remove unused special migrations code from migrate_clickhouse

* tweaks to support fresh deployments
2021-12-13 13:00:27 -03:00
Yakko Majuri
09e12327c0
Docker compose hobby (#7262)
* Docker compose hobby:

* fix with shellcheck
2021-11-23 11:25:31 +00:00