-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Rewritten everything with better and consistant prompts - Four-space indentations - Hiding setup option when already done - Hiding update option when it's finished - Added a prompt helper function for code-brevity - Replaced copied original files with manual replacements - Refactored VSC env variables into USING_VSC single one - Renamed "multi-lingual" concept into "localized" - Ran migrations regularily - Organized validations in place before each script - Ensured scripts aren't being ran directly - Validated against environment variables difference - Controlled message logging during the scripts - Added a LOGGING_LEVEL env variable - Set up 3 different modes for logging - Hid warnings, to only show in level 2 - Hid regular output, to only show in level 3 - Fixed dangling Apache sites upon deletion - Replaced curl with wget for the update checking process - Dropped mkcert installation command to be ran manually - Fixed Minio's service in setup script - Fixed NVM commands in setup script - Fixed Code folder permissions for the opinionated setup - Fixed the removal of non-existing VSC workspaces - Fixed Laravel Telescope migrations pubishing - Installing Expose only when its token is provided in .env - Considered [auth.json] in git-ignore - Added a JS closure in x-init - Some opinionated changes - Updated personal settings - Added a VSC extension: shellscript - Updated [README.md]
- Loading branch information
Showing
37 changed files
with
1,321 additions
and
2,248 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Check if needed scripts exist and source them | ||
declare -a script_paths=( | ||
"./scripts/functions/prompt.sh" | ||
) | ||
for script_path in "${script_paths[@]}"; do | ||
if [[ ! -f $script_path ]]; then | ||
echo -e "Error: Working directory isn't the script's main.\n" | ||
|
||
echo -e "Tip: Maybe run [cd ~/Downloads/lara-stacker/ && sudo ./lara-stacker.sh] commands.\n" | ||
|
||
echo -n "Press any key to exit..." | ||
read whatever | ||
|
||
clear | ||
exit 1 | ||
fi | ||
source $script_path | ||
done |
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,9 @@ | ||
# Check if VSC is installed | ||
found_vsc=false | ||
if command -v code &>/dev/null; then | ||
found_vsc=true | ||
elif command -v codium &>/dev/null; then | ||
found_vsc=true | ||
fi | ||
|
||
# TODO run the projects using it |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
LOGGING_LEVEL=1 # 1 = notifications only | 2 = 1 + errors + warnings | 3 = everything | ||
PROJECTS_DIRECTORY=/var/www/html | ||
USERNAME=<your-username> | ||
DB_PASSWORD=<your-password> | ||
EXPOSE_TOKEN=<your-token> | ||
OPINIONATED=true | ||
VSC_WORKSPACE=true | ||
VSC_KEYBINDINGS=true | ||
USING_VSC=true | ||
EXPOSE_TOKEN="" # Installed when provided |
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 |
---|---|---|
|
@@ -7,6 +7,6 @@ | |
.env | ||
.env.backup | ||
.env.production | ||
# auth.json | ||
auth.json | ||
npm-debug.log | ||
# /.vscode |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.