bin/rails
#!/usr/bin/env ruby
# We attempting to run the Rails server under SSL
if ENV['SSL'] == "true" && ARGV.index("s") || ARGV.index("server")
if ARGV.index("-b")
$stdout.puts "You've specified a binding IP. I suspect it includes the SSL information"
else
$stdout.puts "Injecting SSL on port 3000. If you chose a different port than 3000, consider using port 3000 for HTTPS"
ARGV += ["-b", "ssl://localhost:3000?key=dev_server_keys/server.key&cert=dev_server_keys/server.crt"]
end
end
APP_PATH = File.expand_path('../../config/application', __FILE__)
require_relative '../config/boot'
require 'rails/commands'