Permalink
Browse files

Set env to production when run via vegas, closes #91.

  • Loading branch information...
1 parent a781fdb commit d4852d11c84829c0c0a551fec24bc79c0cd50a5b @lucassus committed Jan 16, 2013
Showing with 4 additions and 2 deletions.
  1. +2 −2 app/views/index.erb
  2. +2 −0 bin/mongo_browser
View
@@ -1,10 +1,10 @@
<!DOCTYPE html>
-<html ng-app="mb" ng-cloak>
+<html ng-app="mb">
<head>
<title>Mongo Browser</title>
<link href="/assets/application.css" rel="stylesheet" media="screen">
</head>
- <body ng-controller="main">
+ <body ng-controller="main" ng-cloak>
<div class="navbar navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
View
@@ -13,6 +13,8 @@ builder = Rack::Builder.new do
end
end
+ENV["RACK_ENV"] ||= "production"
+
Vegas::Runner.new(builder, "mongo_browser") do |runner, opts, app|
opts.on("--mongodb-port PORT", "Specify mongodb port") do |port|
runner.logger.info "Using mongodb port #{port}"

0 comments on commit d4852d1

Please sign in to comment.