Skip to content

Commit

Permalink
test sites
Browse files Browse the repository at this point in the history
  • Loading branch information
sakthi-aot committed May 8, 2024
1 parent 444ca44 commit e85cc68
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions backend/sites/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
FROM node:16.14.0-alpine

# Set npm cache directory
# ENV NPM_CONFIG_CACHE=/home/node/.npm
ENV NPM_CONFIG_CACHE=/home/node/.npm

# # NPM Permission Fix
# RUN mkdir -p /home/node/.npm \
# && chown -R 1001:0 /home/node/.npm
# NPM Permission Fix
RUN mkdir -p /home/node/.npm \
&& chown -R 1001:0 /home/node/.npm

# Install packages, build, and keep only prod packages
WORKDIR /app
Expand Down
16 changes: 8 additions & 8 deletions backend/sites/initDB.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ psql "user=$POSTGRES_ADMIN_USERNAME password=$POSTGRES_ADMIN_PASSWORD host=$POST

echo "init db complete"

# Set NPM_CONFIG_CACHE environment variable
export NPM_CONFIG_CACHE=/home/node/.npm
# # Set NPM_CONFIG_CACHE environment variable
# export NPM_CONFIG_CACHE=/home/node/.npm

# Ensure ownership of .npm folder
mkdir -p /home/node/.npm \
&& chown -R node:node /home/node/.npm
# # Ensure ownership of .npm folder
# mkdir -p /home/node/.npm \
# && chown -R node:node /home/node/.npm

# NPM Permission Fix
mkdir -p /.npm
chown -R 1015500000:0 /.npm
# # NPM Permission Fix
# mkdir -p /.npm
# chown -R 1015500000:0 /.npm

# run type orm migrations
npm run typeorm:run-migrations
Expand Down

0 comments on commit e85cc68

Please sign in to comment.