-
Notifications
You must be signed in to change notification settings - Fork 81
[EN] Local Installation
Lito edited this page Jul 31, 2024
·
3 revisions
-
Create the MySQL database.
-
Clone the repository.
git clone https://github.com/eusonlito/GPS-Tracker.git tracker
cd tracker
- Launch the setup
./composer setup
- Edit the
.env
file and fill in the necessary variables.
vi .env
- Launch the deploy
./composer deploy
- Fill Timezones GeoJSON.
php artisan timezone:geojson
- Configure the cron job for the user related to the project:
* * * * * cd /var/www/tracker.domain.com && install -d storage/logs/artisan/$(date +"\%Y/\%m/\%d") && /usr/bin/php artisan schedule:run >> storage/logs/artisan/$(date +"\%Y/\%m/\%d")/schedule-run.log 2>&1
- Create the main user.
php artisan user:create [email protected] --name=Admin --password=StrongPassword2 --enabled --admin
-
Configure the web server
DocumentRoot
to/var/www/project/public
. -
Profit!
Updating the platform can be done in a simple way with the ./composer deploy
command executed by the user who manages that project (usually www-data
).