Skip to content

dmibiz/pgapex3

 
 

Repository files navigation

CI build

pgApex

pgApex requirements

  • Postgresql 9.6
  • PHP 5.5

Prerequisites

Windows host (vagrant < 1.7.3)

To enable longer paths than 260 chars:

  • Open C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.7.2\plugins\providers\virtualbox\driver\version_4_3.rb (Path may vary)
  • Find method 'share_folders' (lines 495-510)
  • Relpace: folder[:hostpath]] with '\\\\?\\' + folder[:hostpath].gsub(/[\/\\]/,'\\')]

Start VM

  • Open command line as Administrator
  • Go to the folder where is Vagrantfile
  • Run command: vagrant up

Access VM

  • Log into the VM, open Putty
    • Host name: localhost
    • Port: 2222
    • Press Open button
    • Username: vagrant
    • Password: vagrant

Shared folder is in /vagrant directory: cd /vagrant

Deploy db evolutions

  • Execute deploy script: /vagrant/db_evolutions.sh

Access UI

http://localhost:8000

Stop VM

  • Open command line
  • Go to the folder where is Vagrantfile
  • Run command: vagrant halt

Run tests in VM

  • Go to /vagrant folder: cd /vagrant
  • Run js tests once: npm run test-single-run
  • Run js tests when code changes: npm run test
  • Run php tests: composer test

CI

  • https://travis-ci.org/
  • deploy.sh (SERVER_PASSWORD, SERVER_USER_HOST, DB_PASSWORD, DB_USER and DB_DATABASE are variables defined in repository settings)

Demo

About

APEX for ProstgreSQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 28.6%
  • PLpgSQL 21.8%
  • HTML 19.1%
  • PHP 17.5%
  • TeX 11.1%
  • CSS 1.3%
  • Shell 0.6%