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...
Awesome! Great job. I have subscribed!
this is the most useful video I came across, thank you so much my friend.
this is super helpful. thanks for knowledge
Glad to hear that!
Good job, worked for me.
Glad it helped
It works!!
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 ?
Error: getaddrinfo ENOTFOUND *** (control socket) im getting this error everytime... can you help me?
Nice video. Is this applicable to Nextjs projects too?
Yes but nextjs requires certain configurations and SSH access... Stay tuned for a video on that this week too...
i am having protocol error in provided secrets
Is there a reason why the ./build/ directory would be missing?
To answer my own question. The issue was that I forgot the pipe ("|") in the run command under "Build Project"
run: |
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
ensure your file transfer protocol is ftps as done in the video. Please, follow the video diligently.
@@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
is this work for private repo also?
Yep
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