github1s icon indicating copy to clipboard operation
github1s copied to clipboard

How to deploy this on vercel or run it locally

Open myworldbox opened this issue 3 years ago β€’ 8 comments

Hey, I am kinda a newbie, would like to ask you guys how can I enter / deploy the same website as github1s.com on vercel or heroku. After running yarn, yarn build, yarn dev. The page served on localhost://5000 is like the below photo only. Even if I add localhost:5000/myrespo/myfolder, nothing is being shown.

Screenshot 2022-04-02 114103

myworldbox avatar Apr 02 '22 03:04 myworldbox

Hello there!πŸ‘‹ Welcome to the project!πŸ’– Thank you and congratsπŸŽ‰for opening your very first issue in this project.Be patient while we get back to you.πŸ˜„

welcome[bot] avatar Apr 02 '22 03:04 welcome[bot]

Hello there myworldbox πŸ‘‹

Welcome to github1s !!πŸ’–πŸ₯³

Thank you and congratulations πŸŽ‰ for opening your very first issue in this project. github1s fosters an open and welcoming environment for all our contributors.🌸

Incase you want to claim this issue, please comment down below! We will try to get back to you as soon as we can.πŸ‘€

Feel free to visit github1s.com. πŸ‘©β€πŸ’» If you have any interesting ideas, just open an issue. We would love to hear you and engage in discussions.

github-actions[bot] avatar Apr 02 '22 03:04 github-actions[bot]

Hi @myworldbox,

Can you double-check whether you are following this step:

git clone [email protected]:conwnet/github1s.git
cd github1s
yarn
yarn watch
yarn serve # in another shell

And you might need to wait for the yarn watch to be finished before run yarn serve in another shell.

It will look like this:

image

xcv58 avatar Apr 02 '22 17:04 xcv58

hey thank you for your help, the issue is because I use window, I have to change rm to del "watch": "del -rf dist && run-p watch:*"

myworldbox avatar Apr 02 '22 17:04 myworldbox

your respo is epic btw!

myworldbox avatar Apr 02 '22 17:04 myworldbox

yarn run v1.22.17 $ DEV_VSCODE=true run-p watch watch-vscode 'DEV_VSCODE' is not recognized as an internal or external command, operable program or batch file. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

myworldbox avatar Apr 02 '22 18:04 myworldbox

I think all the instructions are for macOS or *nix system.

I think you can use one of the below ways:

  1. Use WSL to run a linux environment on your windows machine: https://docs.microsoft.com/en-us/windows/wsl/about
  2. Use the docker way to develop this project https://github.com/conwnet/github1s#-or--vs-code--docker-development

How to deploy this on vercel

For this one, you can just fork this project and create/link a project to your forked repo. Vercel should automatically deploy it (you might need to push a commit to trigger the initial deploy)

xcv58 avatar Apr 03 '22 03:04 xcv58

Thank you for your effort and help, I will try!

myworldbox avatar Apr 03 '22 03:04 myworldbox