space
space
space
 
มกราคม 2567
 
 123456
78910111213
14151617181920
21222324252627
28293031 
space
space
18 มกราคม 2567
space
space
space

How to SSG into VMs with using PuTTY?
In the web development changing field, deploying static websites is essential for ensuring optimal speed and user experience. Static Site Generators (SSGs) have grown in popularity, allowing developers to easily construct and deploy static websites. This article will walk you through the steps of installing an SSG on Google Cloud Platform (GCP) Virtual Machines (VMs) using PuTTY.

Set up the static site generator to VM on google cloud platform using PuTTY

Set up a Google Cloud Platform Project:
On the Google Cloud Console, create a new project.
Enable the billing and the Compute Engine API.
 
Create a Virtual Machine Instance:
On the Google Cloud Console, navigate the Compute Engine.
Click "Create Instance" to instance settings.
Ensure that HTTP traffic is allowed in the firewall settings.
 
Install PuTTY and connect to the virtual machine:
Download PuTTY and PuTTYgen on your computer.
Use PuTTYgen to convert the .pem format to .ppk format private key.
Connect to your VM using the IP address in PuTTY.

Update and upgrade the virtual machine:
To update and upgrade the VM, use the following instructions in the PuTTY terminal:
sudo apt update
sudo apt upgrade

 
Install Node.js:
 
Install the node.js on your computer if you have not installed it.  
Deploy the SSG:
Transfer your SSG project files to the virtual machine. You may use the pscp (PuTTY Secure Copy) command in PuTTY or an SFTP client.
If your SSG project is hosted on a Git repository, you may clone it directly on the VM using Git.
Configure and construct the SSG:
Navigate to the VM's SSG project directory.
Install all necessary dependencies (for Node.js-based SSGs, use npm install).
If required configure your SSG settings.
Build your site (npm run build or the SSG-specific command).
 
Install a Web Server (if necessary):
If your SSG creates static files and you need to serve them, you may install a web server such as Nginx or Apache.
Configure the web server to serve files from the output directory of the SSG.
 
Visit Your Website:
To visit your installed SSG, open a web browser and input the external IP address of your VM.
By following this guide, developers will gain an in-depth knowledge of the complexities involved in deploying a Static Site Generator to VMs on Google Cloud Platform, as well as using PuTTY to manage their hosted apps in a smooth and safe manner.
 


Create Date : 18 มกราคม 2567
Last Update : 18 มกราคม 2567 5:43:03 น. 0 comments
Counter : 283 Pageviews.
(โหวต blog นี้) 

ชื่อ :
Comment :
  *ใช้ code html ตกแต่งข้อความได้เฉพาะสมาชิก
 
space

สมาชิกหมายเลข 7941998
Location :


[ดู Profile ทั้งหมด]

ฝากข้อความหลังไมค์
Rss Feed
ผู้ติดตามบล็อก : 1 คน [?]






space
space
[Add สมาชิกหมายเลข 7941998's blog to your web]
space
space
space
space
space