Commit Graph

15 Commits

Author SHA1 Message Date
Earlopain
2c60ec69c8
[Prod] Replace unicorn with pitchfork
pitchfork is a unicorn fork with some things removed and some things added.
We don't need any of these things so it should be an easy replace.
There is no worker-killer for pitchfork, it is however trivial to implement ourselves.

unicorn is pretty much dead. The author implies as much in the various readme updates
he made. It also doesn't work with rack 3 and I doubt a new release will even be made.
If it will, it highly likely won't be on rubygems.
2024-05-07 21:54:25 +02:00
Earlopain
f328836895
[Prod] Change how Datadog is enabled
This works fine here (filled in through dockers .env injection)
but on prod the application doesn't know about the API key
2024-04-09 20:52:33 +02:00
Earlopain
0b47770c49
[Prod] Add Datadog
Let's see how this one works out. Cute logo
2024-04-09 20:16:29 +02:00
Earlopain
e4799d9f83
[Prod] Dump NewRelic
Need to look into alternatives
2024-03-23 20:52:31 +01:00
Earlopain
7826b72835
[Docker] Default to running as root
Previous setups will already contain folders created as root. Making a different user the default
will break these setups. So just make it opt-in instead.
2024-01-15 08:59:56 +00:00
Earlopain
2de0ebb5b8
[Docker] Allow running as different user 2024-01-14 16:30:49 +00:00
Earlopain
5c14472878
[Misc] Tweak readme
Also adds back something to .env.sample that I accidentally removed last commit.

The installation instructions to properly set up ruby-lsp are pretty convoluted at the moment,
I'm hoping that this will improve in the future. I openend https://github.com/Shopify/ruby-lsp/issues/1303 Let's see how that goes
2024-01-12 17:52:22 +01:00
Earlopain
a0a0d8db13
[Docker] Replace solargraph with ruby-lsp
It just works.
Requires a bit of a workaround for the .rubocop.yml env setup currently in use but thats alright.
The companion ruby-lsp-rails doesn't do much right now but I imagine that to become quite powerful in the future.
2024-01-11 23:16:03 +01:00
Earlopain
80b26fbe16
[Docker] Allow easy enabling of NewRelic 2023-10-11 19:47:53 +02:00
Earlopain
156276f0c0
[Docker] Allow overriding forwarded ports
This also makes images load on ports other than 3000 by default
2023-09-25 18:21:08 +02:00
Earlopain
7a75b4514a
[Docker] Add the discord joiner as an optional service 2023-08-04 22:54:01 +02:00
Earlopain
e87d617c6f
[IQDB] Switch to new implementation 2023-04-24 14:46:26 +02:00
Earlopain
86a6e94390
[Docker] Update unicorn config for development 2023-03-10 17:27:00 +01:00
Earlopain
09be4cded9
[CI] Commit database.yml
Makes the test setup easier.
Also eases prod deploys with the two separate db pool sizes.
2023-02-25 14:41:07 +01:00
Earlopain
179a948cf2
[Docker] Add solargraph to the image, and a few more things
* Allow modifying .env without git complainging about changes to commit
* Require COMPOSE_PROFILE=solargraph for solargraph to be included in the image
* Set required vscode settings for solargraph to correctly work in docker
* Clean up .solargraph.yml. All these removed values are the default
* Disable autocomplete in the rails console
* Add a compose service to run rubocop

* Upddate rubocop config

Added some, removed some, ordered alphabetically.
Before: 844 files inspected, 6871 offenses detected, 6095 offenses autocorrectable
After: 844 files inspected, 8024 offenses detected, 7538 offenses autocorrectable
Most of the new offences are because of Style/StringLiterals (1312)
2022-10-18 23:35:18 +02:00