Skip to content

Commit

Permalink
Merge pull request #131 from GSA-TTS/feature/pipelines-update
Browse files Browse the repository at this point in the history
build
  • Loading branch information
jimmoffet authored Jan 20, 2025
2 parents 9c3ed5c + 20fc7e3 commit 3d27aea
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 54 deletions.
104 changes: 52 additions & 52 deletions .profile
Original file line number Diff line number Diff line change
Expand Up @@ -27,82 +27,82 @@ if [ -n "$VCAP_APPLICATION" ]; then

echo "===========/startup/===========\n$(df -h | sed -n '2p')\n============================"

# rm -rf node_modules
rm -rf node_modules

# # Clean npm cache
# echo "Cleaning npm cache..."
# npm cache clean --force
# Clean npm cache
echo "Cleaning npm cache..."
npm cache clean --force

# # Clean Node.js cache if any (optional)
# echo "Cleaning Node.js cache..."
# if [ -d "$HOME/.node-gyp" ]; then
# rm -rf "$HOME/.node-gyp"
# fi
# Clean Node.js cache if any (optional)
echo "Cleaning Node.js cache..."
if [ -d "$HOME/.node-gyp" ]; then
rm -rf "$HOME/.node-gyp"
fi

# if [ -d "$HOME/.npm" ]; then
# rm -rf "$HOME/.npm"
# fi
if [ -d "$HOME/.npm" ]; then
rm -rf "$HOME/.npm"
fi

# if [ -d "$HOME/.cache/yarn" ]; then
# rm -rf "$HOME/.cache/yarn"
# fi
if [ -d "$HOME/.cache/yarn" ]; then
rm -rf "$HOME/.cache/yarn"
fi

# # Install packages with temporary cache
# echo "Installing npm packages with temporary cache..."
# npm install --include=dev
# Install packages with temporary cache
echo "Installing npm packages with temporary cache..."
npm install --include=dev

# echo "===========/installed node dev deps/===========\n$(df -h | sed -n '2p')\n============================"
echo "===========/installed node dev deps/===========\n$(df -h | sed -n '2p')\n============================"

# npm run build
npm run build

# echo "===========/build has run/===========\n$(df -h | sed -n '2p')"
echo "===========/build has run/===========\n$(df -h | sed -n '2p')"
else
echo "Not running inside a Cloud Foundry instance. Skipping path setting."
fi

# rm -rf node_modules
rm -rf node_modules
# npm install --only=production --prefer-online

# # Clean npm and Yarn caches
# echo "Cleaning npm and Yarn caches..."
# npm cache clean --force
# yarn cache clean
# Clean npm and Yarn caches
echo "Cleaning npm and Yarn caches..."
npm cache clean --force
yarn cache clean || true

# echo "===========/remove modules, install prod, clean/===========\n$(df -h | sed -n '2p')"
echo "===========/remove modules, install prod, clean/===========\n$(df -h | sed -n '2p')"

# # Clean output directory (dist)
# echo "Cleaning Vite output directory..."
# rm -rf dist
# Clean output directory (dist)
echo "Cleaning Vite output directory..."
rm -rf dist || true

# # Clean ESLint and Prettier caches
# echo "Cleaning ESLint and Prettier caches..."
# rm -f .eslintcache
# rm -f .prettiercache
# Clean ESLint and Prettier caches
echo "Cleaning ESLint and Prettier caches..."
rm -f .eslintcache || true
rm -f .prettiercache || true

# # Clean Babel cache
# echo "Cleaning Babel cache..."
# rm -rf .babel_cache
# Clean Babel cache
echo "Cleaning Babel cache..."
rm -rf .babel_cache || true

# # Clean TypeScript cache
# echo "Cleaning TypeScript cache..."
# rm -f tsconfig.tsbuildinfo
# Clean TypeScript cache
echo "Cleaning TypeScript cache..."
rm -f tsconfig.tsbuildinfo || true

# # Clean any other potential caches related to Vite or build tools
# echo "Cleaning .vite and other build caches..."
# rm -rf .vite
# rm -rf .cache
# Clean any other potential caches related to Vite or build tools
echo "Cleaning .vite and other build caches..."
rm -rf .vite || true
rm -rf .cache || true

# if [ -d "$HOME/.node-gyp" ]; then
# rm -rf "$HOME/.node-gyp"
# fi
if [ -d "$HOME/.node-gyp" ]; then
rm -rf "$HOME/.node-gyp"
fi

# if [ -d "$HOME/.cache/yarn" ]; then
# rm -rf "$HOME/.cache/yarn"
# fi
if [ -d "$HOME/.cache/yarn" ]; then
rm -rf "$HOME/.cache/yarn"
fi

# echo "All caches cleaned!"
echo "All caches cleaned!"

# echo "===========/node vite caches clean/===========\n$(df -h | sed -n '2p')"
echo "===========/node vite caches clean/===========\n$(df -h | sed -n '2p')"

export USE_CUDA=0
export USE_CUDNN=0
Expand Down
2 changes: 1 addition & 1 deletion LOCALDEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@

`docker run --name pgvector_postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=postgres -p 5432:5432 pgvector/pgvector:pg15`

- To mimic the production env, ensure that `DATABASE_URL` provides a connection string to the container above.
- To mimic the production env, ensure that `DATABASE_URL` provides a connection string to the container above
2 changes: 1 addition & 1 deletion runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.11.9
python-3.11.10

0 comments on commit 3d27aea

Please sign in to comment.