Copyright (C) 2020 Dusan Mitrovic [email protected]
Licensed under the terms of the CC BY-SA 4.0
Valet Linux
https://cpriego.github.io/valet-linux/
#!/usr/bin/bash | |
# Turn on maintenance mode | |
php artisan down || true | |
# Pull the latest changes from the git repository | |
# git reset --hard | |
# git clean -df | |
git pull origin master | |
# Install/update composer dependecies | |
composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev |
Valet Linux
https://cpriego.github.io/valet-linux/
#!/bin/bash | |
echo "Copying .env file..." | |
if [ ! -f ".env" ]; then | |
scp .env.example .env | |
fi | |
echo "Composer install..." | |
composer install |
/** | |
* @description Checks if JWT Token has expired | |
* @param {string} token | |
* | |
* @return {boolean} | |
*/ | |
const isTokenExpired = token => { | |
/** @type {string[]} */ | |
const parts = token.split("."); | |
/** @type {number} */ |