Bobandy
Bobandy
RRailway
Created by Bobandy on 11/10/2023 in #✋|help
Persistent 'Permission Denied' Error with 'serve' Command During App Deployment
always make sure to include node_modules in your .gitignore folks
16 replies
RRailway
Created by Bobandy on 11/10/2023 in #✋|help
Persistent 'Permission Denied' Error with 'serve' Command During App Deployment
16 replies
RRailway
Created by Bobandy on 11/10/2023 in #✋|help
Persistent 'Permission Denied' Error with 'serve' Command During App Deployment
shouldve checked that first before creating my own post!
16 replies
RRailway
Created by Bobandy on 11/10/2023 in #✋|help
Persistent 'Permission Denied' Error with 'serve' Command During App Deployment
should
16 replies
RRailway
Created by Bobandy on 11/10/2023 in #✋|help
Persistent 'Permission Denied' Error with 'serve' Command During App Deployment
it's okay i fixed it thanks to another person in this server who had the same issue already addressed for them
16 replies
RRailway
Created by Bobandy on 11/10/2023 in #✋|help
Persistent 'Permission Denied' Error with 'serve' Command During App Deployment
the commands to start/serve locally work just fine but i can't seem to get past this permission error when i try to deploy
16 replies
RRailway
Created by Bobandy on 11/10/2023 in #✋|help
Persistent 'Permission Denied' Error with 'serve' Command During App Deployment
that's my dockerfile and package.json
16 replies
RRailway
Created by Bobandy on 11/10/2023 in #✋|help
Persistent 'Permission Denied' Error with 'serve' Command During App Deployment
{ "name": "client", "version": "1.0.0", "description": "", "main": "index.html", "scripts": { "start": "serve -s build", "serve": "serve -s build -l 8080" }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { "@types/body-parser": "^1.19.5", "browser-sync": "^2.29.3", "http-server": "^14.1.1", "npm-run-all": "^4.1.5", "typescript": "^5.2.2" }, "dependencies": { "body-parser": "^1.20.2", "serve": "^14.2.1" } }
16 replies
RRailway
Created by Bobandy on 11/10/2023 in #✋|help
Persistent 'Permission Denied' Error with 'serve' Command During App Deployment
FROM node:18 WORKDIR /client RUN npm install -g serve COPY package*.json ./ RUN npm install --only=production COPY build/ ./build/ RUN chmod -R 755 /client EXPOSE 8080 CMD ["serve", "-s", "build"]
16 replies
RRailway
Created by Bobandy on 11/10/2023 in #✋|help
Persistent 'Permission Denied' Error with 'serve' Command During App Deployment
fdd1fc46-1b7b-498b-b536-d3b9f054613f
16 replies