Skip to content

[EN] Local Installation

Lito edited this page Jul 31, 2024 · 3 revisions
  1. Create the MySQL database.

  2. Clone the repository.

git clone https://github.com/eusonlito/GPS-Tracker.git tracker

cd tracker
  1. Launch the setup
./composer setup
  1. Edit the .env file and fill in the necessary variables.
vi .env
  1. Launch the deploy
./composer deploy
  1. Fill Timezones GeoJSON.
php artisan timezone:geojson
  1. 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
  1. Create the main user.
php artisan user:create [email protected] --name=Admin --password=StrongPassword2 --enabled --admin
  1. Configure the web server DocumentRoot to /var/www/project/public.

  2. Profit!

Upgrade

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).