Switched to production ruby env
This commit is contained in:
@@ -14,8 +14,9 @@ WORKDIR /app
|
|||||||
|
|
||||||
ENV GIT_HASH 78525f7281534674e5a987db805c2805f477b7f4
|
ENV GIT_HASH 78525f7281534674e5a987db805c2805f477b7f4
|
||||||
|
|
||||||
ENV RAILS_ENV development
|
ENV RAILS_SERVE_STATIC_FILES=true
|
||||||
ENV RACK_ENV development
|
ENV RAILS_ENV production
|
||||||
|
ENV RACK_ENV production
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
|
|
||||||
RUN git clone https://github.com/snibox/snibox.git /app && cd /app && git reset --hard $GIT_HASH
|
RUN git clone https://github.com/snibox/snibox.git /app && cd /app && git reset --hard $GIT_HASH
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ module Snibox
|
|||||||
class Application < Rails::Application
|
class Application < Rails::Application
|
||||||
# Initialize configuration defaults for originally generated Rails version.
|
# Initialize configuration defaults for originally generated Rails version.
|
||||||
config.load_defaults 5.1
|
config.load_defaults 5.1
|
||||||
config.web_console.whitelisted_ips = '0.0.0.0/0'
|
config.web_console.whitelisted_ips = ENV["WEB_CONSOLE_WHITELISTED_IPS"] || '0.0.0.0/0'
|
||||||
|
|
||||||
# SQLite3 fix
|
# SQLite3 fix
|
||||||
config.active_record.sqlite3.represent_boolean_as_integer = true
|
config.active_record.sqlite3.represent_boolean_as_integer = true
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
development:
|
production:
|
||||||
adapter: sqlite3
|
adapter: sqlite3
|
||||||
pool: 5
|
pool: 5
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
|
|||||||
Reference in New Issue
Block a user