Skip to content

Commit

Permalink
try a different directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tjheffner committed Dec 22, 2023
1 parent a28b8d7 commit d316449
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .tugboat/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ services:
- bash -lc 'composer va:next:install'

# Create symlink between vets-website assets and next-build
- ln -snf "${DOCROOT}/vendor/va-gov/vets-website/build/localhost/generated" "${TUGBOAT_ROOT}/next/public/generated"
# - ln -snf "${DOCROOT}/vendor/va-gov/vets-website/build/localhost/generated" "${TUGBOAT_ROOT}/next/public/generated"
- ln -snf "${TUGBOAT_ROOT}/vets-website/build/localhost/generated" "${TUGBOAT_ROOT}/next/public/generated"


# https://www.drush.org/latest/deploycommand/ (updatedb, cache:rebuild, config:import, deploy:hook)
- drush deploy
Expand Down
7 changes: 4 additions & 3 deletions scripts/vets-web-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ export NVM_DIR="$HOME/.nvm"
source ~/.bashrc

# Installs & builds vets-website dependencies for next-build preview.
if [ ! -d docroot/vendor/va-gov/vets-website ]; then
#if [ ! -d docroot/vendor/va-gov/vets-website ]; then
if [ ! -d vets-website ]; then
git clone --single-branch --depth 1 https://github.com/department-of-veterans-affairs/vets-website.git docroot/vendor/va-gov/vets-website
else
echo "Repo vets-website already cloned."
fi

cd docroot/vendor/va-gov/vets-website
#cd docroot/vendor/va-gov/vets-website
cd vets-website

nvm install 14.15.1
nvm use 14.15.1
Expand All @@ -23,6 +25,5 @@ echo "NPM $(npm -v)"
echo "Yarn $(yarn -v)"

export NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=TRUE
yarn install
yarn build

0 comments on commit d316449

Please sign in to comment.