Move all files to decoupling-drupal-vuejs/demo/
This commit is contained in:
parent
a5f598deff
commit
92cba01aa5
296 changed files with 0 additions and 0 deletions
37
decoupling-drupal-vuejs/demo/drupal/.docksal/commands/init
Executable file
37
decoupling-drupal-vuejs/demo/drupal/.docksal/commands/init
Executable file
|
@ -0,0 +1,37 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
## Initialize stack and site (full reset)
|
||||
##
|
||||
## Usage: fin init
|
||||
|
||||
# Abort if anything fails
|
||||
set -e
|
||||
|
||||
#-------------------------- Helper functions --------------------------------
|
||||
|
||||
# Console colors
|
||||
red='\033[0;31m'
|
||||
green='\033[0;32m'
|
||||
green_bg='\033[1;97;42m'
|
||||
yellow='\033[1;33m'
|
||||
NC='\033[0m'
|
||||
|
||||
echo-red () { echo -e "${red}$1${NC}"; }
|
||||
echo-green () { echo -e "${green}$1${NC}"; }
|
||||
echo-green-bg () { echo -e "${green_bg}$1${NC}"; }
|
||||
echo-yellow () { echo -e "${yellow}$1${NC}"; }
|
||||
|
||||
#-------------------------- Execution --------------------------------
|
||||
|
||||
# Stack initialization
|
||||
echo -e "${green_bg} Step 1 ${NC}${green} Initializing stack...${NC}"
|
||||
fin project reset -f
|
||||
|
||||
# Site initialization
|
||||
echo -e "${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
|
||||
|
||||
echo -e "${green_bg} DONE! ${NC}${green} Completed all initialization steps.${NC}"
|
||||
|
||||
#-------------------------- END: Execution --------------------------------
|
Loading…
Add table
Add a link
Reference in a new issue