Skip to content

Commit 2393093

Browse files
authored
Merge pull request #11676 from neinteractiveliterature/drop-heroku-support
Drop Heroku support
2 parents 63d236a + f302e9f commit 2393093

13 files changed

Lines changed: 7 additions & 372 deletions

File tree

.profile.d/heroku-exec.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

Dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,13 @@ ENV NODE_ENV production
6464
ENV REVISION ${REVISION}
6565

6666
USER root
67-
# openssh-server: needed for heroku exec
6867
# iproute2, curl: generally useful network utilities that don't take much space
6968
# python3, xz-utils: node dependencies
7069
# libvips43, poppler-utils: activestorage dependencies
7170
# libjemalloc2: more efficient memory allocation in Ruby and Node
7271
# shared-mime-info: Rails dependency
7372
# libpq5: pg gem dependency
74-
RUN apt-get update && apt-get install -y --no-install-recommends openssh-server iproute2 curl python3 libvips42 poppler-utils xz-utils libjemalloc2 shared-mime-info libpq5 gosu && rm -rf /var/lib/apt/lists/*
73+
RUN apt-get update && apt-get install -y --no-install-recommends iproute2 curl python3 libvips42 poppler-utils xz-utils libjemalloc2 shared-mime-info libpq5 gosu && rm -rf /var/lib/apt/lists/*
7574
RUN useradd -ms $(which bash) www
7675
RUN mkdir /opt/node && \
7776
cd /opt/node && \
@@ -92,10 +91,6 @@ COPY --from=build /usr/local/bundle /usr/local/bundle
9291
COPY --from=build --chown=www /usr/src/intercode /usr/src/intercode
9392
RUN chmod +x /usr/src/intercode/bin/entrypoint.sh
9493

95-
# The following two lines are to enable heroku exec support: https://devcenter.heroku.com/articles/exec#using-with-docker
96-
ADD ./.profile.d /app/.profile.d
97-
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
98-
9994
WORKDIR /usr/src/intercode
10095

10196
# Entrypoint runs as root so it can access /.fly/api for the OIDC token fetch,

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ gem "domain_prefix"
101101
gem "faraday"
102102
gem "fly.io-rails"
103103
gem "icalendar"
104-
gem "platform-api"
105104
gem "positioning"
106105
gem "rack-cors"
107106
gem "stackprof"

Gemfile.lock

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,6 @@ GEM
272272
bigdecimal
273273
money (~> 7.0)
274274
nokogiri (~> 1.11)
275-
excon (0.112.0)
276275
factory_bot (6.6.0)
277276
activesupport (>= 6.1.0)
278277
factory_bot_rails (6.5.1)
@@ -318,12 +317,6 @@ GEM
318317
tilt
319318
heapy (0.2.0)
320319
thor
321-
heroics (0.1.4)
322-
base64
323-
excon
324-
json
325-
moneta
326-
webrick
327320
holidays (10.0.0)
328321
i18n (1.14.8)
329322
concurrent-ruby (~> 1.0)
@@ -388,7 +381,6 @@ GEM
388381
minitest-spec-rails (7.4.1)
389382
minitest (>= 5.0)
390383
railties (>= 4.1)
391-
moneta (1.0.0)
392384
monetize (2.0.0)
393385
money (~> 7.0)
394386
money (7.0.2)
@@ -437,10 +429,6 @@ GEM
437429
activerecord (>= 6.1)
438430
activesupport (>= 6.1)
439431
phonelib (0.10.21)
440-
platform-api (3.9.1)
441-
heroics (~> 0.1.1)
442-
moneta (~> 1.0.0)
443-
rate_throttle_client (~> 0.1.0)
444432
positioning (0.4.8)
445433
activerecord (>= 6.1)
446434
activesupport (>= 6.1)
@@ -517,7 +505,6 @@ GEM
517505
zeitwerk (~> 2.6)
518506
rainbow (3.1.1)
519507
rake (13.4.2)
520-
rate_throttle_client (0.1.2)
521508
rb-fsevent (0.11.2)
522509
rb-inotify (0.11.1)
523510
ffi (~> 1.0)
@@ -751,7 +738,6 @@ DEPENDENCIES
751738
pg
752739
pg_search
753740
phonelib
754-
platform-api
755741
positioning
756742
prettier (= 4.0.4)
757743
prettier_print
@@ -800,7 +786,7 @@ DEPENDENCIES
800786
yard
801787

802788
RUBY VERSION
803-
ruby 4.0.5p0
789+
ruby 4.0.5p0
804790

805791
BUNDLED WITH
806-
4.0.13
792+
4.0.13

app.json

Lines changed: 0 additions & 39 deletions
This file was deleted.

app/services/hosting_service_adapters.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
# frozen_string_literal: true
12
module HostingServiceAdapters
2-
ADAPTER_CLASSES = [HostingServiceAdapters::Fly, HostingServiceAdapters::Heroku]
3+
ADAPTER_CLASSES = [HostingServiceAdapters::Fly].freeze
34

45
def self.find_adapter
56
ADAPTER_CLASSES.map(&:new).find(&:applicable?)

app/services/hosting_service_adapters/heroku.rb

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)