bin/spinebox in spinebox-0.0.12 vs bin/spinebox in spinebox-0.0.13
- old
+ new
@@ -35,10 +35,11 @@
exit(0)
end
# Run server
on "server, s", "Run the development server", :if => proc { ['server', 's'].include?(ARGV.first) }, :type => :action do
- Rack::Handler::Thin.run(Spinebox.app, :Port => 3000)
+ port = ARGV[1] == "-p" ? ARGV[2].to_i : 3000
+ Rack::Handler::Thin.run(Spinebox.app, :Port => port)
end
# Model Generator
on "generate model MODEL [attributes]", "Generate a model with attributes", :if => proc { ['generate', 'g'].include?(ARGV.first) and ['model', 'm'].include?(ARGV[1])}, :type => :generator do
\ No newline at end of file