Public Repository

Last pushed: 5 hours ago
Short Description
Short description is empty for this repo.
Full Description

SelectWellness - Back

Deployment

# Create & move to deployment directory
mkdir /path/to/deploy
cd /path/to/deploy
# Clone the repository
git clone https://github.com/c4webbutveckling/optimisten-kundklubb.git .
# Install dependencies
composer install
npm install
# Configure environment
cp .env.example .env
php artisan key:generate
# Set APP variables (APP_ENV, APP_DEBUG, APP_URL)
# Set DB variables (DB_HOST, DB_DATABASE, DB_USERNAME, DB_PASSWORD)
# Set MAIL variables (MAIL_DRIVER,MAIL_HOST,MAIL_PORT,MAIL_USERNAME,MAIL_PASSWORD,MAIL_ENCRYPTION)
# @todo: Create MySQL database
# Migrate & seed database
php artisan migrate:refresh --seed
# Set permissions
chown -R www-data:www-data storage
chmod -R u+w storage
# Create encryption keys, "personal access" and "password grant" clients to generate access tokens
php artisan passport:install
# Publish website
# @todo: Point server to the public folder
php artisan storage:link
# @todo Add the following line to cron tab
* * * * * php /path/to/deploy/artisan schedule:run >> /dev/null 2>&1
Docker Pull Command
Owner
simondubois