Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artist top songs (from lastfm) #229

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions .devcontainer/Dockerfile

This file was deleted.

26 changes: 0 additions & 26 deletions .devcontainer/devcontainer.json

This file was deleted.

56 changes: 0 additions & 56 deletions .devcontainer/docker-compose.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .env.template

This file was deleted.

18 changes: 8 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM ruby:3.1-alpine
FROM ruby:3.1.2-alpine

LABEL maintainer="[email protected]/aidewoode"
ENV LANG C.UTF-8

ENV RAILS_ENV production

ENV NODE_ENV production
ENV RAILS_SERVE_STATIC_FILES true

LABEL maintainer="[email protected]/aidewoode"
# build for musl-libc, not glibc (see https://github.com/sparklemotion/nokogiri/issues/2075, https://github.com/rubygems/rubygems/issues/3174)
ENV BUNDLE_FORCE_RUBY_PLATFORM 1

RUN apk add --no-cache \
tzdata \
Expand All @@ -15,16 +16,15 @@ RUN apk add --no-cache \
nodejs \
yarn \
imagemagick \
ffmpeg \
nginx \
gcompat
ffmpeg

WORKDIR /app

ADD . /app

RUN apk add --no-cache --virtual .build-deps build-base \
&& bundle install --without development test \
&& bundle config --local without 'development test' \
&& bundle install \
&& rm -rf /usr/local/bundle/cache/*.gem \
&& apk del --no-network .build-deps

Expand All @@ -33,8 +33,6 @@ RUN bundle exec rails assets:precompile SECRET_KEY_BASE=fake_secure_for_compile
&& yarn cache clean \
&& rm -rf node_modules tmp/cache/* /tmp/*

RUN cp config/nginx/nginx.conf /etc/nginx/nginx.conf

ENTRYPOINT ["docker/entrypoint.sh"]

EXPOSE 3000
Expand Down
17 changes: 9 additions & 8 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ gem "cssbundling-rails", "~> 1.1.0"
# Bundle and transpile JavaScript in Rails
gem "jsbundling-rails", "~> 1.0.0"

if ENV.fetch("DATABASE_ADAPTER", "sqlite") == "postgresql"
gem "pg", "~> 1.3.2"
else
gem "sqlite3", "~> 1.5.0"
end

# Use Puma as the app server
gem "puma", "~> 6.0.0"

Expand Down Expand Up @@ -65,6 +59,15 @@ gem "bcrypt", "~> 3.1.11"
# For sync on library changes
gem "listen", "~> 3.7.1"

# For postgresql database adapter
gem "pg", "~> 1.3.2"

# For render async partials
gem 'render_async'

# For sqlite database adapter
gem "sqlite3", "~> 1.5.0"

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

Expand All @@ -73,7 +76,6 @@ gem "bootsnap", "~> 1.10.3", require: false

group :development, :test do
gem "standard", "~> 1.7"
gem "dotenv-rails", "~> 2.8.1"
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
gem "debug", platforms: %i[mri mingw x64_mingw]
end
Expand All @@ -88,7 +90,6 @@ group :development do
end

group :test do
# Adds support for Capybara system testing and selenium driver
gem "capybara", "~> 3.38.0"
gem "cuprite", "~> 0.14.3"
gem "webmock", "~> 3.14.0", require: false
Expand Down
9 changes: 4 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@ GEM
irb (>= 1.3.6)
reline (>= 0.3.1)
docile (1.4.0)
dotenv (2.8.1)
dotenv-rails (2.8.1)
dotenv (= 2.8.1)
railties (>= 3.2)
erubi (1.11.0)
ferrum (0.13)
addressable (~> 2.5)
Expand Down Expand Up @@ -184,6 +180,7 @@ GEM
parallel (1.22.1)
parser (3.1.2.1)
ast (~> 2.4.1)
pg (1.3.5)
propshaft (0.6.4)
actionpack (>= 7.0.0)
activesupport (>= 7.0.0)
Expand Down Expand Up @@ -237,6 +234,7 @@ GEM
regexp_parser (2.6.0)
reline (0.3.1)
io-console (~> 0.5)
render_async (2.1.11)
request_store (1.5.1)
rack (>= 1.4)
rexml (3.2.5)
Expand Down Expand Up @@ -321,18 +319,19 @@ DEPENDENCIES
cssbundling-rails (~> 1.1.0)
cuprite (~> 0.14.3)
debug
dotenv-rails (~> 2.8.1)
httparty (~> 0.17.0)
jbuilder (~> 2.11.5)
jsbundling-rails (~> 1.0.0)
listen (~> 3.7.1)
memory_profiler (~> 0.9.13)
pagy (~> 5.6.6)
pg (~> 1.3.2)
propshaft (~> 0.6.4)
puma (~> 6.0.0)
rails (~> 7.0.0)
ransack (~> 3.2.1)
redis (~> 4.0)
render_async
sidekiq (~> 7.0.0)
simplecov (~> 0.21.2)
simplecov-lcov (~> 0.8.0)
Expand Down
Loading