Skip to content

Commit bebba3c

Browse files
author
Semenyuk Dmitriy
committed
Getting ready for Teatro.io stage server
1 parent 321a825 commit bebba3c

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

.teatro.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
project:
2+
platform: rails
3+
4+
stage:
5+
before:
6+
- export CI_DB_ADAPTER=postgresql
7+
- export CI_ORM=active_record
8+
- cp Procfile.teatro Procfile
9+
- cd spec/dummy_app
10+
- cp ../../config/database.yml config/
11+
- bundle install --without development --jobs=3 --retry=3
12+
- ln -sf $PWD/public ../../public
13+
14+
database:
15+
- bundle exec rake db:create db:migrate db:seed
16+
17+
config:
18+
database: postgresql
19+
services:
20+
- postgresql

Procfile.teatro

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: cd spec/dummy_app && bundle exec rails server

spec/dummy_app/config/environments/production.rb

+2
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,6 @@
7777

7878
# Use default logging formatter so that PID and timestamp are not suppressed.
7979
config.log_formatter = ::Logger::Formatter.new
80+
81+
config.logger = Logger.new(STDOUT)
8082
end

0 commit comments

Comments
 (0)