Skip to content

lamtonylam/personal-nextjs

Repository files navigation

Personal website using nextjs

Development

Add .env file

BASE_URL=YOUR_URL

Run

npm run dev

Open http://localhost:3000 with your browser to see the result.

Build static files (HTML, JS ,CSS)

Run

npm run build

Files will be located in build folder

Deployment

The repository includes deploy.sh file for easy deployment to Uni of Helsinki CS department servers.

First step is to install sshpass

sudo apt update
sudo apt install sshpass
  • Create .env file
  • Create env variable USERNAME:"YOUR-USERNAME"
  • Create env variable PASSWORD:"YOUR-PASSWORD"
  • Create env variable BASE_PATH:"YOUR-BASE-PATH", for university config it is /u/username
  • Make script executable
chmod +x deploy.sh
  • Run it
./deploy.sh

About

Personal website using nextjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •