Source code for my personal website. https://urpagin.net
Find a file
2025-08-18 09:42:20 +02:00
.github/workflows Fix SSH Exploit 2025-08-16 17:41:18 +02:00
src Fix links 2025-08-18 09:42:20 +02:00
static Offload audio to servers 2025-07-30 03:03:40 +02:00
.dockerignore docker 2025-01-13 02:56:15 +01:00
.gitignore docker 2025-01-13 02:56:15 +01:00
.npmrc docker 2025-01-13 02:56:15 +01:00
.prettierignore docker 2025-01-13 02:56:15 +01:00
.prettierrc remove daisyui 2025-01-13 18:04:17 +01:00
docker-compose.yml change port 2025-02-25 17:12:11 +01:00
Dockerfile fix docker 2025-06-12 20:00:00 +02:00
eslint.config.js docker 2025-01-13 02:56:15 +01:00
package-lock.json update deps, update page 2025-07-29 14:41:51 +02:00
package.json update deps, update page 2025-07-29 14:41:51 +02:00
README.md final 2025-01-13 04:16:53 +01:00
svelte.config.js final 2025-01-13 04:16:53 +01:00
tsconfig.json docker 2025-01-13 02:56:15 +01:00
update.sh tweak update.sk 2025-07-29 23:41:16 +02:00
vite.config.ts docker 2025-01-13 02:56:15 +01:00

Urpagin.net

Deploy on Push (Continuous Deployment with Docker & GitHub Actions)

The following steps assume you are working on a Linux machine.

Steps to Set Up Continuous Deployment:

  1. On your local machine, generate a new SSH key by running:

    ssh-keygen -t ed25519 -f ~/.ssh/deploy_key
    
  2. Copy the generated public SSH key to your server (the one where the website will run) by using the following command:

    ssh-copy-id -i ~/.ssh/deploy_key.pub user@host
    
  3. Go to your GitHub repository and navigate to: Settings -> Secrets and variables -> Actions -> New repository secret.
    Add the following secrets:

    • PROJECT_PATH: The absolute path where you cloned your repository on the remote server (e.g., /home/debian/urpagin-dot-net/).
    • SSH_USER: The username used to log in to your remote server.
    • SSH_HOST: The IP address of the remote server.
    • SSH_PRIVATE_KEY: On your local machine, copy the contents of the ~/.ssh/deploy_key file, which contains the private SSH key.
  4. On your remote server, run the build_and_run.sh script to start the project.
    From this point onward, any git push action to the master branch will automatically trigger the build_and_run.sh script, via SSH, to update the website.


Manual Deployment (Using Docker)

On your remote server, follow these steps:

  1. Clone the repository:

    git clone https://github.com/Urpagin/urpagin-dot-net.git
    
  2. Navigate to the project directory:

    cd urpagin-dot-net/
    
  3. Make the build_and_run.sh script executable:

    chmod +x build_and_run.sh
    
  4. Run the script:

    ./build_and_run.sh
    

Manual Deployment (Using npm)

Developing

Start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.