mirror of
https://github.com/mudabbir-ahmad/Portfolio_V1.git
synced 2026-12-06 19:53:09 +00:00
Add project image carousel, HTTPS support, and deployment setup
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7d1d2feccb
commit
2e67bc1418
11 files changed
+197
-11
No files matched your search
@@ -0,0 +1,20 @@
|
||||
# Deploying
|
||||
|
||||
## Adding project images
|
||||
1. Copy the files into `public/images/projects/`.
|
||||
2. Add the filenames under the project's id in `src/project-images.json`.
|
||||
Several filenames = carousel.
|
||||
|
||||
## First-time server setup
|
||||
1. `git clone` the repo, then create `secrets/.env` from `.env.example`
|
||||
(set `VITE_*` values, `GITHUB_TOKEN` (read-only PAT), `ALLOWED_ORIGIN`, and
|
||||
either `TLS_CERT`/`TLS_KEY` or `FORCE_HTTPS=true` behind a TLS proxy).
|
||||
2. Put your CV at `public/CV/` (gitignored, so copy it over manually).
|
||||
3. `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.
|
||||
Reference in new issue
Block a user