···11+#!/usr/bin/env bash
22+33+# This is an RVM Project .rvmrc file, used to automatically load the ruby
44+# development environment upon cd'ing into the directory
55+66+# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
77+# Only full ruby name is supported here, for short names use:
88+# echo "rvm use 3.0.2@blog" > .rvmrc
99+environment_id="ruby-3.0.2@blog"
1010+1111+# Uncomment the following lines if you want to verify rvm version per project
1212+# rvmrc_rvm_version="1.29.12-next (master)" # 1.10.1 seems like a safe start
1313+# eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
1414+# echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
1515+# exit 1
1616+# }
1717+1818+# First we attempt to load the desired environment directly from the environment
1919+# file. This is very fast and efficient compared to running through the entire
2020+# CLI and selector. If you want feedback on which environment was used then
2121+# insert the word 'use' after --create as this triggers verbose mode.
2222+if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
2323+ && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
2424+then
2525+ \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
2626+ for __hook in "${rvm_path:-$HOME/.rvm}/hooks/after_use"*
2727+ do
2828+ if [[ -f "${__hook}" && -x "${__hook}" && -s "${__hook}" ]]
2929+ then \. "${__hook}" || true
3030+ fi
3131+ done
3232+ unset __hook
3333+ if (( ${rvm_use_flag:=1} >= 1 )) # display automatically
3434+ then
3535+ if [[ $- == *i* ]] # check for interactive shells
3636+ then printf "%b" "Using: $(tput setaf 2 2>/dev/null)$GEM_HOME$(tput sgr0 2>/dev/null)\n" # show the user the ruby and gemset they are using in green
3737+ else printf "%b" "Using: $GEM_HOME\n" # don't use colors in non-interactive shells
3838+ fi
3939+ fi
4040+else
4141+ # If the environment file has not yet been created, use the RVM CLI to select.
4242+ rvm --create use "$environment_id" || {
4343+ echo "Failed to create RVM environment '${environment_id}'."
4444+ return 1
4545+ }
4646+fi
4747+4848+# If you use bundler, this might be useful to you:
4949+# if [[ -s Gemfile ]] && {
5050+# ! builtin command -v bundle >/dev/null ||
5151+# builtin command -v bundle | GREP_OPTIONS="" \command \grep $rvm_path/bin/bundle >/dev/null
5252+# }
5353+# then
5454+# printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
5555+# gem install bundler
5656+# fi
5757+# if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
5858+# then
5959+# bundle install | GREP_OPTIONS="" \command \grep -vE '^Using|Your bundle is complete'
6060+# fi
···2323worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
24242525# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
2626-port ENV.fetch("PORT") { 3000 }
2626+port ENV.fetch("PORT") { 3003 }
27272828# Specifies the `environment` that Puma will run in.
2929-environment ENV.fetch("RAILS_ENV") { "development" }
2929+environment ENV.fetch("RAILS_ENV") { "production" }
30303131# Specifies the `pidfile` that Puma will use.
3232pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }