Raed.us landing page and blog.
- Node
$ npm install
$ npm run dev
After the application starts, navigate to http://localhost:3000
in your web browser
- rahmedd/infra infrastructure and setup. Please read before continuing.
Add volume to proxy service in infra/compose.yaml
:
services:
proxy:
build: proxy
volumes:
- blog-dist:/blog-dist
Add blog server to infra/proxy/nginx.conf
:
server {
listen 80;
server_name raed.us;
location / {
root /blog-dist;
index index.html;
try_files $uri $uri/ /index.html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
$ docker compose up --build
After the application starts, navigate to http://mydomain.test
in your web browser
This is partially based on Astro content collections tutorial.