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
:
-
Move folder
dist
to folderBlogs
:rm -r /Users/weilai/Documents/Website/html5up-dimension/Blogs mv /Users/weilai/Documents/Website/astro-chiri/dist /Users/weilai/Documents/Website/html5up-dimension/Blogs
-
Ssh to the server and delete the original folder:
cd /usr/share/nginx rm -r html
-
Sftp to the server and upload the
dist
folder:put -r /Users/weilai/Documents/Website/html5up-dimension /usr/share/nginx/html
-
Change the ownership of the folder:
sudo chown -R www-data:www-data /usr/share/nginx/html