-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-> This should fix it
- Loading branch information
Showing
4 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
# Set the right permissions | ||
chown -R www-data:www-data ./ | ||
chmod -R 777 ./ | ||
|
||
# Install the dependencies | ||
apt install sudo wget curl git zip unzip -y | ||
|
||
# Install Docker if not installed | ||
if ! [ -x "$(command -v docker)" ]; then | ||
curl -sSL https://get.docker.com/ | CHANNEL=stable bash | ||
sudo systemctl enable --now docker | ||
fi | ||
|
||
# Install Docker Compose if not installed | ||
if ! [ -x "$(command -v docker-compose)" ]; then | ||
apt install docker-compose -y | ||
fi | ||
|
||
# Start the build process | ||
docker-compose --env-file ./backend/storage/.env up -d --build | ||
|
||
# Set the right permissions | ||
chown -R www-data:www-data ./ | ||
chmod -R 777 ./ | ||
|
||
# Migrations | ||
docker exec mythicalclient_backend bash -c "php mythicalclient migrate" | ||
|
||
# Create the first user | ||
#docker exec mythicalclient_backend bash -c "php mythicalclient user:create" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters