Skip to content

5. Deployment Notes

Mark Lester Bolotaolo edited this page Oct 5, 2023 · 1 revision

PIPS is hosted on-prem at the Department of Agriculture's server. The server is a CentOS 7 server.

The project directories have been setup to connect to Github repositories where the source codes are ideally stored. Deploying code changes is as simple as running sudo git pull inside the project directory. However, for documentation purposes, the initial deployment process is as follows:

Laravel Backend

For the backend, ensure that the following are installed and configured in the server:

  1. php with php-fpm (latest version is preferred)
  2. composer (for dependency management in php)
  3. nginx (for web server)
  4. mysql (for database)
  5. git (for version control)
  6. supervisor (for keeping artisan commands running)

The repository for the backend is located in https://github.com/mlab817/pipsv2.

Flutter Frontend

There are no required dependencies for Flutter frontend because the app is built locally and the only the build is uploaded. The repository for the frontend is located in https://github.com/mlab817/xpips

Currently, there is a Github action running every time that a pull requested is merged. The action uploads the build folder to another repository and this repository is the one that should be cloned in the server (https://github.com/mlab817/xpips-build).

Clone this wiki locally