.pkgr.yml 696 B

12345678910111213141516171819202122232425262728293031323334
  1. targets:
  2. centos-6:
  3. dependencies:
  4. - httpd
  5. - postgresql
  6. - postgresql-server
  7. - postgresql-devel
  8. centos-7:
  9. dependencies:
  10. - httpd
  11. - postgresql
  12. - postgresql-server
  13. - postgresql-devel
  14. before:
  15. - uname -a
  16. - ruby -v
  17. - env
  18. - cp config/database.yml.pkgr config/database.yml
  19. - echo "gem 'pg'" >> Gemfile.local
  20. - echo "gem 'mysql2', '~> 0.3.20'" >> Gemfile.local
  21. - sed -i "s/specs:/specs:\\n pg (0.18.4)/g" Gemfile.lock
  22. - sed -i "s/DEPENDENCIES/DEPENDENCIES\\n pg/g" Gemfile.lock
  23. - "#cat Gemfile.lock"
  24. env:
  25. - RAILS_ENV=production
  26. - PORT=3000
  27. - RAILS_SERVE_STATIC_FILES=true
  28. services:
  29. - postgres
  30. notifications: false