mirror of
https://github.com/mudabbir-ahmad/Portfolio_V1.git
synced 2026-12-06 19:53:09 +00:00
818 B
818 B
Deploying
Adding project images
- Copy the files into
public/images/projects/. - Add the filenames under the project's id in
src/project-images.json. Several filenames = carousel.
First-time server setup
git clonethe repo, then createsecrets/.envfrom.env.example(setVITE_*values,GITHUB_TOKEN(read-only PAT),ALLOWED_ORIGIN, and eitherTLS_CERT/TLS_KEYorFORCE_HTTPS=truebehind a TLS proxy).- Put your CV at
public/CV/(gitignored, so copy it over manually). npm run deploy— installs, builds, and starts the server (default port 3001).
Updating
git pull && npm run setup && npm run build
then restart the process (systemd/pm2). The token lives only in secrets/.env
and is only ever used by server/index.js; the browser never sees it.