diff --git a/config/puma.rb b/config/puma.rb index afa809b..ade5728 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -20,16 +20,29 @@ end # Specifies the `worker_timeout` threshold that Puma will use to wait before # terminating a worker in development environments. -worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development" +# worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development" + + # Specifies the `port` that Puma will listen on to receive requests; default is 3000. -port ENV.fetch("PORT") { 3000 } +# port ENV.fetch("PORT") { 3000 } # Specifies the `environment` that Puma will run in. -environment ENV.fetch("RAILS_ENV") { "development" } +environment ENV.fetch("RAILS_ENV") { "production" } # Specifies the `pidfile` that Puma will use. -pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" } +# pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" } + +app_dir = File.expand_path("../..", __FILE__) +shared_dir = "#{app_dir}/tmp/pids" + +# Logging +stdout_redirect "#{app_dir}/log/puma_access.log", "#{app_dir}/log/puma_error.log", true + + +# Set up socket location +bind "unix://#{shared_dir}/puma.sock" + # Allow puma to be restarted by `bin/rails restart` command. -plugin :tmp_restart +# plugin :tmp_restart diff --git a/config/sidekiq.yml b/config/sidekiq.yml new file mode 100644 index 0000000..da3aeaa --- /dev/null +++ b/config/sidekiq.yml @@ -0,0 +1,10 @@ +--- +:concurrency: 5 +staging: + :concurrency: 10 +production: + :concurrency: 10 +:queues: + - critical + - default + - low \ No newline at end of file diff --git a/public/404.html b/public/404.html index 2be3af2..b40612a 100644 --- a/public/404.html +++ b/public/404.html @@ -3,65 +3,53 @@ The page you were looking for doesn't exist (404) + - - - -
-
-

The page you were looking for doesn't exist.

-

You may have mistyped the address or the page may have moved.

-
-

If you are the application owner check the logs for more information.

+ +
+

404

+

The page you were looking for doesn't exist.

+

You may have mistyped the address or the page may have moved.

- + \ No newline at end of file diff --git a/public/422.html b/public/422.html index c08eac0..7fc2ad5 100644 --- a/public/422.html +++ b/public/422.html @@ -3,65 +3,53 @@ The change you wanted was rejected (422) + - - - -
-
-

The change you wanted was rejected.

-

Maybe you tried to change something you didn't have access to.

-
-

If you are the application owner check the logs for more information.

+ +
+

422

+

The change you wanted was rejected.

+

Maybe you tried to change something you didn't have access to.

- + \ No newline at end of file diff --git a/public/500.html b/public/500.html index 78a030a..83408f0 100644 --- a/public/500.html +++ b/public/500.html @@ -3,64 +3,52 @@ We're sorry, but something went wrong (500) + - - - -
-
-

We're sorry, but something went wrong.

-
-

If you are the application owner check the logs for more information.

+ +
+

500

+

Ops! We're sorry, but something went wrong.

- + \ No newline at end of file