Skip to content
This repository was archived by the owner on Mar 7, 2018. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/dashing
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ module Dashing
def start(*args)
port_option = args.include?('-p')? '' : ' -p 3030'
args = args.join(" ")
command = "bundle exec thin -R config.ru start #{port_option} #{args}"
command = "bundle exec rackup config.ru #{port_option} #{args}"
command.prepend "export JOB_PATH=#{options[:job_path]}; " if options[:job_path]
system(command)
end
Expand Down
3 changes: 1 addition & 2 deletions dashing.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ Gem::Specification.new do |s|
s.add_dependency('coffee-script', '>=1.6.2')
s.add_dependency('sinatra')
s.add_dependency('sinatra-contrib')
s.add_dependency('thin')
s.add_dependency('rufus-scheduler')
s.add_dependency('thor')
s.add_dependency('sprockets')
s.add_dependency('rack')

end
end
2 changes: 1 addition & 1 deletion lib/dashing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
settings.sprockets.append_path path
end

set server: 'thin', connections: [], history_file: 'history.yml'
set connections: [], history_file: 'history.yml'

# Persist history in tmp file at exit
at_exit do
Expand Down
6 changes: 6 additions & 0 deletions templates/project/Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
source 'https://rubygems.org'

gem 'dashing'
platform :jruby do
gem 'puma'
end
platform :ruby do
gem 'thin'
end

## Remove this if you don't need a twitter widget.
gem 'twitter'