How to publish a website made by Node.js to Github Pages?

前端 未结 5 1633
被撕碎了的回忆
被撕碎了的回忆 2020-11-29 16:43

I made a website using Node.js as the server. As I know, the node.js file should start working by typing commands in terminal, so I\'m not sure if Github Pages supports node

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 16:50

    It's very simple steps to push your node js application from local to GitHub.

    Steps:

    1. First create a new repository on GitHub
    2. Open Git CMD installed to your system (Install GitHub Desktop)
    3. Clone the repository to your system with the command: git clone repo-url
    4. Now copy all your application files to this cloned library if it's not there
    5. Get everything ready to commit: git add -A
    6. Commit the tracked changes and prepares them to be pushed to a remote repository: git commit -a -m "First Commit"
    7. Push the changes in your local repository to GitHub: git push origin master

提交回复
热议问题