Hitesh Sahu
Hitesh Sahu

Reputation: 45052

Deploy Gatsby on Godaddy Sever

Can I deploy Gatsby static pages on Godaddy server? I am not sure if that's possible.

Upvotes: 3

Views: 2851

Answers (3)

Hitesh Sahu
Hitesh Sahu

Reputation: 45052

I end up building my own framework with ReactJS, now all I have to do is execute

npm run build

to create an optimized build in build directory

  1. Zip everything from build folder.
  2. Go to godaddy CPanel->filemanger-> public html

enter image description here

enter image description here

  1. Upload the zip file from build folder into public html

  2. Right click to unzip it and we are good to go

See the live demo http://hiteshsahu.com/topics

Upvotes: 0

Robbie Cook
Robbie Cook

Reputation: 424

If you want to deploy your static website on a normal server without CI, you can run gatsby serve -p 80 -H <your private IP address>. Replace with the IP address you get from ifconfig on linux or ipconfig on windows.

Upvotes: 1

Thomas
Thomas

Reputation: 167

If you have SSH/SFTP access to your server on GoDaddy (which you should), you can use any CI tool to deploy your Gatsby site.

Tools you can use are for example:

Another option is to use a hoster specialized on static pages like github pages or netlify.

Upvotes: 3

Related Questions