Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion conf/.bashrc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ function wp-setup () {
wp-init-database 1> /dev/null

# install WordPress

rm -rf ${GITPOD_REPO_ROOT}/${APACHE_DOCROOT}
mkdir -p ${GITPOD_REPO_ROOT}/${APACHE_DOCROOT}
cd ${GITPOD_REPO_ROOT}/${APACHE_DOCROOT}/
Expand Down Expand Up @@ -145,6 +144,10 @@ export -f browse-dbadmin
export -f browse-phpinfo
export -f browse-emails

# load NVM
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

# use Node.js LTS
nvm use lts/* > /dev/null
export NODE_VERSION=$(node -v | sed 's/v//g')