sarapis / orservices

ORServices is an open source, smartphone-friendly directory application that enables you to collect, verify, organize and share information about social services in your community with your stakeholders, beneficiaries, partner organizations and more.
https://sarapis.org/human-services/orservices/
22 stars 16 forks source link

Local Setup Issues #43

Closed btmoore4 closed 3 years ago

btmoore4 commented 3 years ago

Speaking with Devin, just wanted to create an issue where we could centralize some setup issues and questions that we are having. Hopefully will be able to document the process to allow quicker setup.

btmoore4 commented 3 years ago

"Run git clone https://github.com/d9it/larable.git" This repo seems unavailable or now private? Is there a way to workaround or clone from another source?

dangalan commented 3 years ago

I'm think that command is just meant to the copy the repo where all the code is (some confirmation on this would be much appreciated). The other command with "larable" in it (chmod -R 755 ../larable) just changes read, write, and executable status (more explanation here) - I ran chmod -R 755 ../orservices and everything looked ok. Git might read this change in file status as a change that needs to be uploaded which you can ignore with this command: git config core.fileMode false (more explanation here).

dangalan commented 3 years ago

Anyone else get this error trying to run locally: ErrorException Trying to get property 'meta_filter_activate' of non-object (View: /Users/dangalan/Code/orservices/resources/views/layouts/filter.blade.php) Looks like layout in line 24 is null for some reason

d9it commented 3 years ago

"Run git clone https://github.com/d9it/larable.git" This repo seems unavailable or now private? Is there a way to workaround or clone from another source?

The git repo url is updated so use git clone https://github.com/sarapis/orservices.git.

d9it commented 3 years ago

Anyone else get this error trying to run locally: ErrorException Trying to get property 'meta_filter_activate' of non-object (View: /Users/dangalan/Code/orservices/resources/views/layouts/filter.blade.php) Looks like layout in line 24 is null for some reason

The latest code is pushed into this repository and the updated database is 15022021.sql Url( https://github.com/sarapis/orservices/tree/master/database/dump). Take Pull from this repository & update the database with the latest, After that this issue will be fixed.

dangalan commented 3 years ago

The latest code is pushed into this repository and the updated database is 15022021.sql Url( https://github.com/sarapis/orservices/tree/master/database/dump). Take Pull from this repository & update the database with the latest, After that this issue will be fixed.

I think all the CREATE statements in the dump files are unnecessary? Running php artisan migrate creates the tables right? Running mysql -u root -p ORServices_local < database/dump/15022021.sql throws the following for me: ERROR 1050 (42S01) at line 30: Table 'accessibilities' already exists.

Updates:

  1. Ran the project locally without the DB dump, got the following error: Trying to get property 'home_page_style' of non-object (View: /Users/dangalan/Code/orservices/resources/views/frontEnd/home.blade.php).
  2. I then deleted the tables created by php artisan migrate and re-ran mysql -u root -p ORServices_local < database/dump/15022021.sql to create the tables that way and got the following error running locally: Trying to get property 'active' of non-object (View: /Users/dangalan/Code/orservices/resources/views/layouts/style.blade.php).

Seems like both the migration and the dump contain something required to render the frontend? Would getting rid of any duplicated CREATE statements in the latest dump file resolve this issue?

d9it commented 3 years ago

The latest code is pushed into this repository and the updated database is 15022021.sql Url( https://github.com/sarapis/orservices/tree/master/database/dump). Take Pull from this repository & update the database with the latest, After that this issue will be fixed.

I think all the CREATE statements in the dump files are unnecessary? Running php artisan migrate creates the tables right? Running mysql -u root -p ORServices_local < database/dump/15022021.sql throws the following for me: ERROR 1050 (42S01) at line 30: Table 'accessibilities' already exists.

Updates:

  1. Ran the project locally without the DB dump, got the following error: Trying to get property 'home_page_style' of non-object (View: /Users/dangalan/Code/orservices/resources/views/frontEnd/home.blade.php).
  2. I then deleted the tables created by php artisan migrate and re-ran mysql -u root -p ORServices_local < database/dump/15022021.sql to create the tables that way and got the following error running locally: Trying to get property 'active' of non-object (View: /Users/dangalan/Code/orservices/resources/views/layouts/style.blade.php).

Seems like both the migration and the dump contain something required to render the frontend? Would getting rid of any duplicated CREATE statements in the latest dump file resolve this issue?

The code is updated now. If you are using SQL dump file so don't use "php artisan migrate".

devinbalkind commented 3 years ago

I think was a success - yes!? If so I'll close the issue.

btmoore4 commented 3 years ago

Correct, yes can close