Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make app heroku ready #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ rvm:

env:
- COVERALLS=1 TRAVIS=ci DB=mysql HANAMI_ENV=test DATABASE_URL="mysql2://root@127.0.0.1:3306/predios_test" LOCAL_ASSETS=true BROWSER_OPTIONS='--browser=chrome --headless'
- COVERALLS=1 TRAVIS=ci DB=pg HANAMI_ENV=test DATABASE_URL="postgres://postgres@localhost:5432/predios_test" LOCAL_ASSETS=true BROWSER_OPTIONS='--browser=chrome --headless'

before_script:
- psql -c 'create database predios_test;' -U postgres
- mysql -e 'CREATE DATABASE predios_test;'
before_install:
- npm i -g npm

script:
- bundle exec hanami db create
# - bundle exec hanami db create
- bundle exec hanami db migrate
# - "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"
Expand All @@ -29,3 +32,8 @@ services:
- mysql
addons:
chrome: stable
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gem 'addressable'
gem 'dotenv', '~> 2.4'
gem 'koine-google_maps_client'
gem 'mysql2'
gem 'pg'

# domain
gem 'koine-command_bus', '~> 1.0'
Expand Down
4 changes: 3 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ GEM
parallel (1.19.1)
parser (2.6.5.0)
ast (~> 2.4.0)
pg (1.2.2)
powerpack (0.1.2)
public_suffix (4.0.1)
rack (2.0.8)
Expand Down Expand Up @@ -349,6 +350,7 @@ DEPENDENCIES
omniauth (~> 1.9.0)
omniauth-facebook (~> 5.0.0)
omniauth-google-oauth2 (~> 0.5.3)
pg
rake
rb-readline
rspec
Expand All @@ -364,4 +366,4 @@ DEPENDENCIES
whenever

BUNDLED WITH
2.0.2
2.1.4