Skip to content

Commit

Permalink
Merge pull request #142 from kookmin-sw/feautre/be/#134-ApiGateway
Browse files Browse the repository at this point in the history
Feautre/be/#134 Spring Cloud Gateway를 이용한 Api 게이트웨이 생성
  • Loading branch information
BlueBerrySoda authored May 4, 2024
2 parents 9d42b79 + 10ffe71 commit 7c36b3e
Show file tree
Hide file tree
Showing 92 changed files with 2,422 additions and 2,305 deletions.
10 changes: 10 additions & 0 deletions back-chat/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,13 @@
.env
env.bashrc
.idea

# 디폴트 무시된 파일
.idea/dataSources.xml
.idea/vcs.xml
.idea/workspace.xml
.idea/.gitignore
.idea/dataSources
.idea/modules.xml
.idea/dataSources.local.xml
.idea/back-chat.iml
8 changes: 0 additions & 8 deletions back-chat/.idea/.gitignore

This file was deleted.

532 changes: 0 additions & 532 deletions back-chat/.idea/back-chat.iml

This file was deleted.

12 changes: 0 additions & 12 deletions back-chat/.idea/dataSources.xml

This file was deleted.

8 changes: 0 additions & 8 deletions back-chat/.idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions back-chat/.idea/vcs.xml

This file was deleted.

32 changes: 16 additions & 16 deletions back-chat/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM ruby:3.0.2-slim

WORKDIR /app

RUN apt-get update
RUN apt-get install -y build-essential apt-utils libpq-dev default-mysql-client default-libmysqlclient-dev

COPY Gemfile Gemfile.lock ./

RUN gem install bundler && RAILS_ENV=production bundle install --jobs 20 --retry 5

ENV RAILS_ENV=production

COPY . ./

ENTRYPOINT ["bundle", "exec", "rails", "s", "-p", "3000", "-b", "0.0.0.0"]
FROM ruby:3.0.2-slim

WORKDIR /app

RUN apt-get update
RUN apt-get install -y build-essential apt-utils libpq-dev default-mysql-client default-libmysqlclient-dev

COPY Gemfile Gemfile.lock ./

RUN gem install bundler && RAILS_ENV=production bundle install --jobs 20 --retry 5

ENV RAILS_ENV=production

COPY . ./

ENTRYPOINT ["bundle", "exec", "rails", "s", "-p", "3000", "-b", "0.0.0.0"]
84 changes: 42 additions & 42 deletions back-chat/Gemfile
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '3.0.2'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
gem 'rails', '~> 6.1.7', '>= 6.1.7.7'
# Use mysql as the database for Active Record
gem 'mysql2', '~> 0.5'

# Use Puma as the app server
gem 'puma', '~> 5.0'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
# gem 'jbuilder', '~> 2.7'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Active Storage variant
# gem 'image_processing', '~> 1.2'

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.4.4', require: false

# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
# gem 'rack-cors'

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end

group :development do
gem 'listen', '~> 3.3'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '3.0.2'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
gem 'rails', '~> 6.1.7', '>= 6.1.7.7'
# Use mysql as the database for Active Record
gem 'mysql2', '~> 0.5'

# Use Puma as the app server
gem 'puma', '~> 5.0'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
# gem 'jbuilder', '~> 2.7'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Active Storage variant
# gem 'image_processing', '~> 1.2'

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.4.4', require: false

# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
# gem 'rack-cors'

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end

group :development do
gem 'listen', '~> 3.3'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

gem 'jwt'
Loading

0 comments on commit 7c36b3e

Please sign in to comment.