nafiesl / silsilah

A genealogy/family tree application, built with Laravel.
MIT License
595 stars 287 forks source link

How to deploy in cpanel? #82

Closed tmfikrif closed 2 years ago

tmfikrif commented 2 years ago

is there a tutorial how? I have a problem when deploying in cpanel

Please help. thank you

image Pasted Graphic
nafiesl commented 2 years ago

Hi @samkoba, I can see the issue is caused by the PHP version. You were using PHP 8.0, but this project requires PHP 7.3 - 7.4.

The current possible solution: you downgrade PHP version from 8.0 to 7.4. Then try to run the composer install again using PHP 7.4.

Let us know if the solution works for you.

Thanks.

tmfikrif commented 2 years ago

oh my god, this works. Thank you very much.

But do you know how to remove the debug feature listed below? very annoying for production

image
nafiesl commented 2 years ago

@samkoba, great!!

For production you can set these values on the .env file:

APP_ENV=production
APP_DEBUG=false

After that, the debug bar should be gone.

Just an additional suggestion for production, you can re-run composer install like so:

composer install --no-dev

The --no-dev option will remove the dev-dependences (packages) which are not required on production.

tmfikrif commented 2 years ago

it really works. thank you very much.

Sorry, this is my last question.

In the silsilah only shown until the "wereng" (5th generation). I want to show up to the 10th generation. Where can I change it?

nafiesl commented 2 years ago

No problem, @samkoba.

Correct, we just show 5 generations there. You can continue showing the next generations by editing this file:

https://github.com/nafiesl/silsilah/blob/master/resources/views/users/tree.blade.php

You can check on these parts to see how it is structured:

...
<div class="branch lv4">
<div class="branch lv5">
tmfikrif commented 2 years ago

very helpful. thank you for answering my questions