Files
Document-Management-System-…/install.md

44 lines
836 B
Markdown
Raw Normal View History

2021-04-07 06:46:38 -04:00
## Usage
``` bash
# Clone this project
2021-04-09 08:15:10 -04:00
git clone https://github.com/manhlab/Document-Management-System.git
2021-04-07 06:46:38 -04:00
# Enter the laradock folder
2021-04-20 15:57:55 -07:00
cd Document-Management-System/laradock
2021-04-07 06:46:38 -04:00
# Copy file env-example to .env
cp env-example .env
# Build containers
docker-compose build nginx mysql phpmyadmin workspace
# Run containers
docker-compose up -d nginx mysql phpmyadmin workspace
# Enter the workspace
docker-compose exec workspace bash
2021-04-07 04:05:20 -04:00
chown $USER /var/run/docker.sock
sudo systemctl start docker
2021-04-07 06:46:38 -04:00
# Rename file env-example to .env
cp .env.example .env
# Install packages
composer install
# Generate application key
php artisan key:generate
# Migrate database & seeders
php artisan migrate:fresh --seed
2021-04-07 04:05:20 -04:00
sudo php artisan cache:clear
2021-04-07 06:46:38 -04:00
# Run the worker
php artisan queue:work
```
Open your browser and visit localhost: http://localhost