Auto deploy reactjs & node app to cpanel using github actions | CI/CD using github actions on cpanel

Поділитися
Вставка
  • Опубліковано 30 бер 2023
  • Hello everyone , in this video i'm going to show you a step by step process on how to deploy your react js application from github to cpanel using github actions.
    In this tutorial, you will learn how to publish your changes from development to production and have your changes reflect immediately.
    Find the link to the .htaccess config (drive.google.com/file/d/1QqnE...) file to used it for any reactjs application you willl be deploying on cpanel.
    Let me know if you don't understand anything.
    Please subscribe, like, comment and share it with your friends. This will help the youtube algorithm to suggest it to other users.
    Subscribe and turn notification :)
    Link to the repo
    github.com/techfortified/yout...
    Want to support or buy me coffee?
    www.buymeacoffee.com/techfort...

КОМЕНТАРІ • 21

  • @omeatai
    @omeatai Рік тому

    Awesome! Great job. I have subscribed!

  • @farhankhan-hq9ww
    @farhankhan-hq9ww 3 місяці тому +1

    this is the most useful video I came across, thank you so much my friend.

  • @vinhwebit
    @vinhwebit 11 місяців тому +1

    this is super helpful. thanks for knowledge

  • @erikguillen6599
    @erikguillen6599 25 днів тому

    Good job, worked for me.

  • @jefrycayo4582
    @jefrycayo4582 Рік тому

    It works!!

  • @oleh-kril
    @oleh-kril Рік тому

    Somehow this CI/CD configuration with "homepage" : "./" copy all files of build in a root folder of my Cpanel, not in public_html. How can I fix this ?

  • @jocikam738
    @jocikam738 Рік тому

    Error: getaddrinfo ENOTFOUND *** (control socket) im getting this error everytime... can you help me?

  • @victorc.chikezie
    @victorc.chikezie Рік тому +1

    Nice video. Is this applicable to Nextjs projects too?

    • @codesermon
      @codesermon  Рік тому +3

      Yes but nextjs requires certain configurations and SSH access... Stay tuned for a video on that this week too...

  • @nirvana4623
    @nirvana4623 6 місяців тому

    i am having protocol error in provided secrets

  • @efox2001
    @efox2001 7 місяців тому

    Is there a reason why the ./build/ directory would be missing?

    • @eldonfox
      @eldonfox 7 місяців тому

      To answer my own question. The issue was that I forgot the pipe ("|") in the run command under "Build Project"
      run: |

  • @VitorHugo-np9qs
    @VitorHugo-np9qs Рік тому

    I'm having trouble in the step to sync files, this error always throw Error: Error: None of the available transfer strategies work. Last error response was 'Error: Timeout when trying to open data connection to {ip}'.... Someone can help me? The folders had been created but the files hadn't

    • @codesermon
      @codesermon  Рік тому

      ensure your file transfer protocol is ftps as done in the video. Please, follow the video diligently.

    • @VitorHugo-np9qs
      @VitorHugo-np9qs Рік тому

      ​@@codesermon I followed the instruction, but i can't do it works...
      log:
      creating folder "static/"
      creating folder "static/css/"
      creating folder "static/js/"
      creating folder "static/media/"
      uploading "asset-manifest.json"
      Error: None of the available transfer strategies work. Last error response was 'Error: Timeout when trying to open data connection to ${ip}'.
      at Client.prepareTransfer (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/v4.3.4/dist/index.js:4802:19)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async Client._uploadFromStream (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/v4.3.4/dist/index.js:4490:13)
      at async Client._uploadLocalFile (/home/runner/work/_actions/SamKirkland/FTP-Deploy-Action/v4.3.4/dist/index.js:4476:20)
      Error: Error: None of the available transfer strategies work. Last error response was 'Error: Timeout when trying to open data connection to ${ip}.
      the same error with using protocol FTPS, I can't understand why it can't does the upload of files, I'm trying to do upload at my dir than it isn't public_html, maybe this is the problem? I doing that because the server is shared

  • @codingtodev
    @codingtodev 6 місяців тому

    is this work for private repo also?

  • @razac_zr
    @razac_zr 11 місяців тому

    I'm having hard time accessing the .env file in my nextjs application??? I have add all my variable in the variable section (nodejs application ) but the app seems not to read them files, How can I solve the issue ? @TechFortified