Skip to content

Commit

Permalink
Getting ready for Teatro.io stage server
Browse files Browse the repository at this point in the history
  • Loading branch information
Semenyuk Dmitriy committed Jul 28, 2014
1 parent 321a825 commit bebba3c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .teatro.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
project:
platform: rails

stage:
before:
- export CI_DB_ADAPTER=postgresql
- export CI_ORM=active_record
- cp Procfile.teatro Procfile
- cd spec/dummy_app
- cp ../../config/database.yml config/
- bundle install --without development --jobs=3 --retry=3
- ln -sf $PWD/public ../../public

database:
- bundle exec rake db:create db:migrate db:seed

config:
database: postgresql
services:
- postgresql
1 change: 1 addition & 0 deletions Procfile.teatro
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: cd spec/dummy_app && bundle exec rails server
2 changes: 2 additions & 0 deletions spec/dummy_app/config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,6 @@

# Use default logging formatter so that PID and timestamp are not suppressed.
config.log_formatter = ::Logger::Formatter.new

config.logger = Logger.new(STDOUT)
end

0 comments on commit bebba3c

Please sign in to comment.