-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
545 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM ruby:2.0.0 | ||
|
||
# throw errors if Gemfile has been modified since Gemfile.lock | ||
RUN bundle config --global frozen 1 | ||
|
||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y nodejs --no-install-recommends && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
gem install foreman | ||
# RUN apt-get update && apt-get install -y mysql-client postgresql-client sqlite3 --no-install-recommends && rm -rf /var/lib/apt/lists/* | ||
|
||
# Old Gemfiles for better gem caching | ||
ADD docker/Gemfile /usr/src/app/docker/Gemfile | ||
ADD docker/Gemfile.lock /usr/src/app/docker/Gemfile.lock | ||
RUN bundle install --gemfile /usr/src/app/docker/Gemfile | ||
|
||
|
||
ADD Gemfile /usr/src/app/ | ||
ADD Gemfile.lock /usr/src/app/ | ||
RUN bundle install | ||
|
||
ADD . /usr/src/app | ||
|
||
|
||
EXPOSE 3000 | ||
|
||
CMD ["foreman", "start", "web"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb | ||
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb | ||
worker: echo "omg worker wokrer woker" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
# source ENV['GEMFURY_URL'] if ENV['GEMFURY_URL'] | ||
source 'http://rubygems.org' | ||
ruby '2.0.0' | ||
|
||
gem 'rails', '~> 3.2.13' | ||
gem 'unicorn' | ||
|
||
# gem 'kit_api', '~> 0.2.4', require: false#, path: File.join('..', 'Downloader') | ||
gem 'yo-ruby', require: false | ||
gem 'upsert', require: false | ||
# gem 'pg-hstore', require: false | ||
|
||
# API | ||
gem 'grape', '~> 0.4.1' | ||
gem 'grape-swagger', '> 0.5.0' | ||
gem 'rack-cors' | ||
gem 'garner', '~> 0.3.2' | ||
|
||
# View | ||
gem 'slim-rails' | ||
gem 'simple_form' | ||
gem 'high_voltage' # static pages | ||
gem 'sitemap_generator', require: false | ||
gem 'kaminari' # pagination | ||
gem 'rails_autolink' | ||
gem 'redcarpet' # markdown | ||
gem "autoprefixer-rails" | ||
# gem 'gravtastic' | ||
gem 'metamagic' | ||
|
||
# Database | ||
gem 'pg', '~> 0.17.1' | ||
gem 'ancestry', '~> 2.0.0' | ||
# gem 'redis', :require=> false | ||
gem 'pg_search' # search | ||
gem 'ri_cal' # timetable -> ical | ||
gem 'activerecord-postgres-hstore' | ||
# gem "acts_as_paranoid", "~>0.4.0" | ||
gem 'paper_trail', '>= 3.0.0.beta1' # versioning | ||
# gem 'heroku_backup_task' | ||
|
||
gem "typhoeus"#, require: false | ||
gem 'elasticsearch' | ||
|
||
gem 'font_assets' | ||
|
||
# gem 'validates_timeliness', '~> 3.0' | ||
gem 'intercom-rails', '~> 0.2.21' | ||
gem 'newrelic_rpm' | ||
|
||
group :production do | ||
gem 'newrelic-grape' | ||
end | ||
|
||
group :production, :staging do | ||
gem 'dalli', '>= 2.6.4' # memcach | ||
gem 'rack-cache', :require => 'rack/cache' | ||
# gem 'rack-contrib', :require => 'rack/contrib' | ||
# gem 'therubyracer' | ||
# gem 'less-rails', '~> 2.3.3' | ||
# gem 'thin' | ||
gem 'unicorn-worker-killer' | ||
gem 'rails_12factor' | ||
end | ||
|
||
group :assets do | ||
gem 'sass-rails', '>= 3.1.5' | ||
gem 'coffee-rails', '>= 3.1.1' | ||
gem 'uglifier', '~> 2.5.0' | ||
#gem 'font-awesome-sass', '~> 4.0.0' | ||
gem "font-awesome-rails", '~> 4.0.0' | ||
gem 'hogan_assets' | ||
end | ||
|
||
group :development do | ||
gem 'quiet_assets' | ||
gem 'better_errors' | ||
gem 'binding_of_caller' | ||
gem 'meta_request', '>= 0.2.5' | ||
gem 'taps' | ||
gem 'pry-remote' | ||
gem 'pry-stack_explorer' | ||
# gem 'pry-debugger' | ||
end | ||
|
||
group :development, :test do | ||
# gem 'highline' # user input in rake task | ||
gem 'rspec-rails' | ||
gem 'zeus' | ||
gem 'awesome_print' | ||
gem 'pry-rails' | ||
gem 'launchy' | ||
gem 'thin' | ||
end | ||
|
||
# To use debugger | ||
# gem 'ruby-debug19', :require => 'ruby-debug' | ||
|
||
group :test do | ||
gem 'factory_girl_rails' | ||
gem 'capybara', '~> 2.0' | ||
gem 'poltergeist', '~> 1.5.0' | ||
|
||
gem 'cucumber-rails', require: false | ||
gem 'database_cleaner' | ||
gem 'spork' | ||
gem 'vcr' | ||
gem 'timecop' | ||
gem 'webmock', '>= 1.10' | ||
gem 'rspec_candy' | ||
# gem 'rspec-prof' | ||
end |
Oops, something went wrong.