.pkgr.yml 719 B

1234567891011121314151617181920212223242526272829303132333435
  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. - contrib/cleanup.sh
  25. env:
  26. - RAILS_ENV=production
  27. - PORT=3000
  28. - RAILS_SERVE_STATIC_FILES=true
  29. services:
  30. - postgres
  31. notifications: false