I created this blog page with astro using “CHIRI” blog template and Aliyun ECS.
To preview the website:
pnpm run devat the root directory.
To build the website:
pnpm run buildat the root directory.
To upload the compiled folder dist:
-
Move folder
distto folderBlogs:rm -r /path/to/site/Blogs mv /path/to/blog/dist /path/to/site/Blogs -
Ssh to the server and delete the original folder:
cd /usr/share/nginx rm -r html -
Sftp to the server and upload the
distfolder:put -r /path/to/site /usr/share/nginx/html -
Change the ownership of the folder:
sudo chown -R www-data:www-data /usr/share/nginx/html