At Sinatra, what is the difference between a production environment and a development environment?

I can not find an exhaustive answer.

What happens if I install "production"? I saw that view files are no longer readable on the fly, but are there other differences?

+3
source share
1 answer

Basically, only templates depend on env var.

You can implement all other logical methods of the application based on the current env:

  if settings.production?
    # this will only run in production
  else
    # every other env
  end

You can also do something similar if conditional configurations are needed:

configure :production, :development do
  enable :logging
end
0
source

All Articles