-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit
More file actions
executable file
·34 lines (23 loc) · 967 Bytes
/
init
File metadata and controls
executable file
·34 lines (23 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
## Initialize stack and site (full reset)
##
## Usage: fin init
# Abort if anything fails
set -euo pipefail
#-------------------------- Helper functions --------------------------------
# Console colors
green=$'\033[0;32m'
green_bg=$'\033[42m'
NC=$'\033[0m'
#-------------------------- Execution --------------------------------
fin config set --env=local XDEBUG_ENABLED=0
printf "%s\n" "${green_bg} XDEBUG Turned OFF! ${NC} "
# Stack initialization
printf "%s\n" "${green_bg} Step 1 ${NC}${green} Initializing stack...${NC}"
fin project reset -f
# Site initialization
printf "%s\n" "${green_bg} Step 2 ${NC}${green} Initializing site...${NC}"
# This runs inside cli using http://docs.docksal.io/en/v1.4.0/fin/custom-commands/#executing-commands-inside-cli
fin init-site
printf "%s\n" "${green_bg} DONE! ${NC}${green} Completed all initialization steps.${NC}"
#-------------------------- END: Execution --------------------------------