Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.81 KB

deploy_github_pages.md

File metadata and controls

52 lines (35 loc) · 1.81 KB

Deploy on Github pages

github pages is a free service for deploying any kind of static site like Carbon. in this page i will descuse how to deploy your own url shortner with github pages for free.

Deployment

  1. Fork the repo to one of your organ or your account.

fork-carbon

  1. open up the the setting and change the name to what do you prefer. in this case i will name it goto.

carbon-github-rename-repo

  1. on the setting go to pages section and enable pages for this repo, by click on save button.

note that you should use branch maseter and directoy docs

enabe-pages-cabron

  1. go to action section, and wait for depoyment. carbon whene its done! open that work flow and click on the link. carbon once you open the link, you should see the index page of carbon! carbon-index done!

  2. now you can siply add your links and just push the chnages.

    clone the repo which you forked. git clone <Your_repo> 1

    2

  3. cd goto

    in this case the name is goto.

    replace the BASE_URL in the config.py with your github pages url carbon

  4. run carbon python3 carbon.py carbon will prompt a Cli and ask you for url, title and etc. pass all the stuff and then commit them git add . && git commit -m 'new urls added'. and in the last step, push them git push carbon-donate-me!

    you can now open the link which you just created.