skip to content

First post: Creating the Website

1 min read

# web
Not in series

I created this blog page with astro using “CHIRI” blog template and Aliyun ECS.

To preview the website:

pnpm run dev

at the root directory.

To build the website:

pnpm run build

at the root directory.

To upload the compiled folder dist:

  1. Move folder dist to folder Blogs:

    rm -r /Users/weilai/Documents/Website/html5up-dimension/Blogs
    mv /Users/weilai/Documents/Website/astro-chiri/dist /Users/weilai/Documents/Website/html5up-dimension/Blogs
  2. Ssh to the server and delete the original folder:

    cd /usr/share/nginx
    rm -r html
  3. Sftp to the server and upload the dist folder:

    put -r /Users/weilai/Documents/Website/html5up-dimension /usr/share/nginx/html
  4. Change the ownership of the folder:

    sudo chown -R www-data:www-data /usr/share/nginx/html