stats4sd / holpa-platform

Data Platform for the HOLPA tool
0 stars 0 forks source link

Staging Env Deployment #16

Closed dan-tang-ssd closed 2 weeks ago

dan-tang-ssd commented 2 weeks ago

This PR is submitted for staging env deployment.

It contains most of the features listed in #1 and #2

It is good to deploy all latest changes and then review as a whole, then plan and prioritise upcoming TODO items.

dan-tang-ssd commented 2 weeks ago

Staging env deployment is not success at first attempt.

There is an error message in deployment log file:

In ProviderRepository.php line 206:

  Class "Stats4sd\FilamentOdkLink\FilamentOdkLinkServiceProvider" not found  

It looks like filament-odk-link package has not been installed properly... Remote login to server, folder packages\filament-odk-link is empty.

Run command "composer update" and "composer install" do not fix the issue.

Finally it is fixed by running "git submodule init" and "git submodule update" in project folder.

After that I run command "composer install" to make sure all required packages are installed.

I click "Deploy Now" button in Forge and let it perform staging env deployment, we have positive result this time.


Then I remote to server, run command "php artisan migrate:fresh --seed" to refresh all database tables and run seeder files. So that ODK platform project record will be created.

Checked that the environment file contains config item ODK_PLATFORM_PROJECT_ID with value 931 now. Crosschecked ODK central, it has project 931 now. https://odk-test.stats4sdtest.online/#/projects/931


Perform testing in staging env, login as admin and test user, most features look normal.

One strange thing is that in app panel > ODK Form Management, it shows error message "ODK Project not found. Is this platform connected to a value ODK Central server?".

I will try to submit a simplest ODK form as Xlsform Template in staging env for testing.


Screen shots:

image