(Disclaimer: New for deploying Sinatra on Heroku.)
I saw http://www.sinatrarb.com/configuration.html and it tells me set :environment, :production . My question is how can I indicate this: "when the environment is set up as a production in Geroku, stay in the test / development".
Also, even after putting the line set :environment, :production , I donβt think it works, because when I try to execute the rackup application locally, it still works (when I know (or, I think, know), that it should not, because I did not install postgres on my computer).
Gemfile
group :production do gem 'dm-postgres-adapter' end group :development, :test do gem 'dm-sqlite-adapter', "~> 1.2.0" end
source share