Skip to content

[EN] Local Installation

Lito edited this page Jul 17, 2024 · 2 revisions
  1. Create the MySQL database.

  2. Clone the repository.

git clone https://github.com/eusonlito/GPS-Tracker.git
  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=user@domain.com --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).