Skip to content

Commit 8bb7956

Browse files
committed
fix incorrect merge
1 parent b2a030d commit 8bb7956

26 files changed

+0
-247
lines changed

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@
1313
!/log/.keep
1414
!/tmp/.keep
1515

16-
<<<<<<< HEAD
1716
/node_modules
1817
/yarn-error.log
1918

20-
=======
21-
# Ignore Byebug command history file.
22-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
2319
.byebug_history
2420
Gemfile.lock

Dockerfile

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,20 @@
11
FROM ruby:alpine
22
MAINTAINER Igor Petrov <[email protected]>
3-
<<<<<<< HEAD
4-
=======
5-
ENV LIBV8_VERSION 3.16.14.18
6-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
73
ENV INSTALL_PATH /kms
84
# Set Rails to run in production
95
ENV RAILS_ENV production
106

11-
<<<<<<< HEAD
127
RUN apk update && apk --update --no-cache add libstdc++ postgresql-client tzdata && mkdir $INSTALL_PATH
13-
=======
14-
RUN apk update && apk --update --no-cache add libstdc++ postgresql-client && mkdir $INSTALL_PATH
15-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
168

179
WORKDIR $INSTALL_PATH
1810

1911
COPY Gemfile Gemfile
2012

2113
RUN apk --update --no-cache add --virtual build-deps build-base python postgresql-dev nodejs g++; \
22-
<<<<<<< HEAD
2314
bundle install --without development test && apk del build-deps
2415

2516
COPY . .
2617

27-
#RUN bundle exec rails kms:install:migrations \
28-
# && SECRET_TOKEN="$(bundle exec rails secret)" DB_ADAPTER=nulldb bundle exec rails assets:precompile
29-
=======
30-
bundle config build.libv8 --enable-debug && \
31-
LIBV8_VERSION=$LIBV8_VERSION bundle install --without development test && apk del build-deps
32-
33-
COPY . .
34-
35-
RUN bundle exec rails kms:install:migrations \
36-
&& SECRET_TOKEN="$(bundle exec rails secret)" DB_ADAPTER=nulldb bundle exec rails assets:precompile
37-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
38-
3918
EXPOSE 3000
4019

4120
# Expose a volume so that nginx will be able to read in assets in production.

Gemfile

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
source 'https://rubygems.org'
22

3-
<<<<<<< HEAD
43
git_source(:github) do |repo_name|
54
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
65
"https://github.com/#{repo_name}.git"
@@ -53,27 +52,3 @@ gem 'tzinfo-data' #, platforms: [:mingw, :mswin, :x64_mingw, :jruby]
5352

5453
gem "activerecord-nulldb-adapter"
5554
gem "kms", '1.0.0'
56-
=======
57-
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
58-
gem 'rails', '~> 5.0.1'
59-
# Use postgresql as the database for Active Record
60-
gem 'pg', '~> 0.18'
61-
gem 'puma'
62-
gem "activerecord-nulldb-adapter"
63-
gem 'libv8', "= #{ENV['LIBV8_VERSION']}"
64-
gem 'therubyracer'
65-
66-
gem "kms"
67-
68-
# Use Uglifier as compressor for JavaScript assets
69-
gem 'uglifier', '>= 1.3.0'
70-
# Use SCSS for stylesheets
71-
gem 'sass-rails', '~> 5.0'
72-
gem 'jquery-rails'
73-
gem "coffee-rails"
74-
gem "turbolinks", "~> 5"
75-
gem 'nokogiri', '1.7.2'
76-
77-
78-
gem 'tzinfo-data'
79-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64

app/assets/javascripts/application.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
11
// This is a manifest file that'll be compiled into application.js, which will include all the files
22
// listed below.
33
//
4-
<<<<<<< HEAD
54
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
65
// vendor/assets/javascripts directory can be referenced here using a relative path.
7-
=======
8-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
9-
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
10-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
116
//
127
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
138
// compiled file. JavaScript code in this file should be added after the last require_* statement.
149
//
1510
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
1611
// about supported directives.
1712
//
18-
<<<<<<< HEAD
1913
//= require rails-ujs
20-
=======
21-
//= require jquery
22-
//= require jquery_ujs
23-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
2414
//= require turbolinks
2515
//= require_tree .

app/assets/javascripts/cable.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
// Action Cable provides the framework to deal with WebSockets in Rails.
2-
<<<<<<< HEAD
32
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
4-
=======
5-
// You can generate new channels where WebSocket features live using the rails generate channel command.
6-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
73
//
84
//= require action_cable
95
//= require_self

app/assets/stylesheets/application.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,8 @@
22
* This is a manifest file that'll be compiled into application.css, which will include all the files
33
* listed below.
44
*
5-
<<<<<<< HEAD
65
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
76
* vendor/assets/stylesheets directory can be referenced here using a relative path.
8-
=======
9-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
10-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
11-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
127
*
138
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
149
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS

app/views/layouts/application.html.erb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<<<<<<< HEAD
54
<title>KmsDocker51</title>
6-
=======
7-
<title>KmsDocker</title>
8-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
95
<%= csrf_meta_tags %>
106

117
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>

bin/rails

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
#!/usr/bin/env ruby
2-
<<<<<<< HEAD
32
begin
43
load File.expand_path('../spring', __FILE__)
54
rescue LoadError => e
65
raise unless e.message.include?('spring')
76
end
8-
=======
9-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
107
APP_PATH = File.expand_path('../config/application', __dir__)
118
require_relative '../config/boot'
129
require 'rails/commands'

bin/rake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
#!/usr/bin/env ruby
2-
<<<<<<< HEAD
32
begin
43
load File.expand_path('../spring', __FILE__)
54
rescue LoadError => e
65
raise unless e.message.include?('spring')
76
end
8-
=======
9-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
107
require_relative '../config/boot'
118
require 'rake'
129
Rake.application.run

bin/setup

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,10 @@ chdir APP_ROOT do
1818
system! 'gem install bundler --conservative'
1919
system('bundle check') || system!('bundle install')
2020

21-
<<<<<<< HEAD
2221
# Install JavaScript dependencies if using Yarn
2322
# system('bin/yarn')
2423

2524

26-
=======
27-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
2825
# puts "\n== Copying sample files =="
2926
# unless File.exist?('config/database.yml')
3027
# cp 'config/database.yml.sample', 'config/database.yml'

config/application.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
require_relative 'boot'
22

3-
<<<<<<< HEAD
43
require "rails"
54
# Pick the frameworks you want:
65
require "active_model/railtie"
@@ -12,15 +11,11 @@
1211
require "action_cable/engine"
1312
require "sprockets/railtie"
1413
# require "rails/test_unit/railtie"
15-
=======
16-
require 'rails/all'
17-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
1814

1915
# Require the gems listed in Gemfile, including any gems
2016
# you've limited to :test, :development, or :production.
2117
Bundler.require(*Rails.groups)
2218

23-
<<<<<<< HEAD
2419
module KmsDocker51
2520
class Application < Rails::Application
2621
# Initialize configuration defaults for originally generated Rails version.
@@ -32,13 +27,5 @@ class Application < Rails::Application
3227

3328
# Don't generate system test files.
3429
config.generators.system_tests = nil
35-
ENV['DATABASE'] = 'docker51'
36-
=======
37-
module KmsDocker
38-
class Application < Rails::Application
39-
# Settings in config/environments/* take precedence over those specified here.
40-
# Application configuration should go into files in config/initializers
41-
# -- all .rb files in that directory are automatically loaded.
42-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
4330
end
4431
end

config/cable.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,4 @@ test:
77
production:
88
adapter: redis
99
url: redis://localhost:6379/1
10-
<<<<<<< HEAD
1110
channel_prefix: kms_docker_51_production
12-
=======
13-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64

config/database.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
default: &default
1818
adapter: <%= ENV['DB_ADAPTER'] ||= 'postgresql' %>
1919
encoding: unicode
20-
<<<<<<< HEAD
2120
# For details on connection pooling, see Rails configuration guide
2221
# http://guides.rubyonrails.org/configuring.html#database-pooling
2322
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
@@ -28,25 +27,12 @@ default: &default
2827
development:
2928
<<: *default
3029
database: <%= ENV['DATABASE'] + '_development' %>
31-
=======
32-
# For details on connection pooling, see rails configuration guide
33-
# http://guides.rubyonrails.org/configuring.html#database-pooling
34-
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
35-
36-
development:
37-
<<: *default
38-
database: kms_development
39-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
4030

4131
# The specified database role being used to connect to postgres.
4232
# To create additional roles in postgres see `$ createuser --help`.
4333
# When left blank, postgres will use the default role. This is
4434
# the same name as the operating system user that initialized the database.
45-
<<<<<<< HEAD
4635
#username: kms_docker_51
47-
=======
48-
#username: kms_docker
49-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
5036

5137
# The password associated with the postgres role (username).
5238
#password:
@@ -74,11 +60,7 @@ development:
7460
# Do not set this db to the same as development or production.
7561
test:
7662
<<: *default
77-
<<<<<<< HEAD
7863
database: <%= ENV['DATABASE'] + '_test' %>
79-
=======
80-
database: kms_test
81-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
8264

8365
# As with config/secrets.yml, you never want to store sensitive information,
8466
# like your database password, in your source code. If your source code is
@@ -101,11 +83,4 @@ test:
10183
#
10284
production:
10385
<<: *default
104-
<<<<<<< HEAD
10586
database: <%= ENV['DATABASE'] + '_production' %>
106-
=======
107-
database: kms_production
108-
username: postgres
109-
password: <%= ENV['KMS_DATABASE_PASSWORD'] %>
110-
host: db
111-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64

config/environments/development.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@
1818

1919
config.cache_store = :memory_store
2020
config.public_file_server.headers = {
21-
<<<<<<< HEAD
2221
'Cache-Control' => "public, max-age=#{2.days.seconds.to_i}"
23-
=======
24-
'Cache-Control' => 'public, max-age=172800'
25-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
2622
}
2723
else
2824
config.action_controller.perform_caching = false

config/environments/production.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,11 @@
1414
config.consider_all_requests_local = false
1515
config.action_controller.perform_caching = true
1616

17-
<<<<<<< HEAD
1817
# Attempt to read encrypted secrets from `config/secrets.yml.enc`.
1918
# Requires an encryption key in `ENV["RAILS_MASTER_KEY"]` or
2019
# `config/secrets.yml.key`.
2120
config.read_encrypted_secrets = true
2221

23-
=======
24-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
2522
# Disable serving static files from the `/public` folder by default since
2623
# Apache or NGINX already handles this.
2724
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
@@ -62,11 +59,7 @@
6259

6360
# Use a real queuing backend for Active Job (and separate queues per environment)
6461
# config.active_job.queue_adapter = :resque
65-
<<<<<<< HEAD
6662
# config.active_job.queue_name_prefix = "kms_docker_51_#{Rails.env}"
67-
=======
68-
# config.active_job.queue_name_prefix = "kms_docker_#{Rails.env}"
69-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
7063
config.action_mailer.perform_caching = false
7164

7265
# Ignore bad email addresses and do not raise email delivery errors.
@@ -90,11 +83,7 @@
9083
if ENV["RAILS_LOG_TO_STDOUT"].present?
9184
logger = ActiveSupport::Logger.new(STDOUT)
9285
logger.formatter = config.log_formatter
93-
<<<<<<< HEAD
9486
config.logger = ActiveSupport::TaggedLogging.new(logger)
95-
=======
96-
config.logger = ActiveSupport::TaggedLogging.new(logger)
97-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
9887
end
9988

10089
# Do not dump schema after migrations.

config/environments/test.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
# Configure public file server for tests with Cache-Control for performance.
1616
config.public_file_server.enabled = true
1717
config.public_file_server.headers = {
18-
<<<<<<< HEAD
1918
'Cache-Control' => "public, max-age=#{1.hour.seconds.to_i}"
20-
=======
21-
'Cache-Control' => 'public, max-age=3600'
22-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
2319
}
2420

2521
# Show full error reports and disable caching.

config/initializers/assets.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Version of your assets, change this if you want to expire all your assets.
44
Rails.application.config.assets.version = '1.0'
55

6-
<<<<<<< HEAD
76
# Add additional assets to the asset load path.
87
# Rails.application.config.assets.paths << Emoji.images_path
98
# Add Yarn node_modules folder to the asset load path.
@@ -13,11 +12,3 @@
1312
# application.js, application.css, and all non-JS/CSS in the app/assets
1413
# folder are already added.
1514
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
16-
=======
17-
# Add additional assets to the asset load path
18-
# Rails.application.config.assets.paths << Emoji.images_path
19-
20-
# Precompile additional assets.
21-
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
22-
# Rails.application.config.assets.precompile += %w( search.js )
23-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64

config/initializers/devise.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@
1010
# Configure the e-mail address which will be shown in Devise::Mailer,
1111
# note that it will be overwritten if you use your own mailer class
1212
# with default "from" parameter.
13-
<<<<<<< HEAD
1413
config.mailer_sender = '[email protected]'
15-
=======
16-
config.mailer_sender = '[email protected]'
17-
>>>>>>> fc41821962e2e09f6903425e1def27a1176c5a64
1814

1915
# Configure the class responsible to send e-mails.
2016
# config.mailer = 'Devise::Mailer'

0 commit comments

Comments
 (0)