Automatic Deployments On Shared Hosting

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024

Комментарии • 64

  • @_romeopeter
    @_romeopeter 3 года назад +4

    Thank you for creating this video. Never thought of this at all. Although I can't implement it on a react or node app, I appreciate knowing that something like this can be done.

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 года назад +1

      You actually have an example for deploying Node or React apps. github.com/marketplace/actions/ftp-deploy

  • @ivanpichkar8192
    @ivanpichkar8192 4 года назад +3

    A few days ago, the first time in my life, I have rent space on this shared hosting provider. I was puzzled because I knew about the deployment process only in theory. But you saved my day. Thank you a lot. You have a new subscriber :)

  • @Montes11985
    @Montes11985 2 года назад +2

    AWESOME ! thank you Master, im new ussing git, and this aplication with yout tutorial its such usefull! hugs from Perú

  • @matthewsmith9272
    @matthewsmith9272 4 года назад +1

    This is a very long overdue video. Great work!

  • @cvallejoec
    @cvallejoec 4 года назад +6

    This video is Gold! Thank you a lot. Please can you make a video uploading a React project to Shared Hosting with this Git workflow?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  4 года назад +2

      I did this video: ruclips.net/video/ebWJbbUT4TA/видео.html , you can do the same thing for Next.js apps or React apps, however, as you will see in this video this approach is far from ideal. It may work better for you, if you have a better hosting, but I would not host node apps on shared hosting just yet.

  • @Cwiet
    @Cwiet 3 года назад +2

    Thanks for the video! It did help me a lot.

  • @chanmyaemaung
    @chanmyaemaung 4 года назад +2

    Thanks brother. I've never used it before like that.

  • @sukhpal3y
    @sukhpal3y 3 года назад +1

    nicely explained video. achieved my task. thank you very much

  • @sagardolui2998
    @sagardolui2998 3 года назад +1

    Great video. Thank you.

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 года назад

      No problem, however better check this video out, it's much better workflow than what is presented in this video. ruclips.net/video/UNWIXYSZfZY/видео.html

  • @zoltanrakottyai
    @zoltanrakottyai 3 года назад +2

    Thanks for sharing this!
    This was a huge "missing piece of the puzzle" how to deploy to shared hosting.

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 года назад

      Yeah, but I made a better video about the same thing, so I recommend following that: ruclips.net/video/UNWIXYSZfZY/видео.html

  • @janmichaelbesinga3867
    @janmichaelbesinga3867 3 года назад +1

    So accurate. Just exactly what i need. Thank you!

  • @SuvroImran
    @SuvroImran 3 года назад +1

    Thank you so much

  • @rajshrishrimal2653
    @rajshrishrimal2653 4 года назад +1

    Superb video 💥🎉🎆

  • @rapsontembo9391
    @rapsontembo9391 2 года назад +1

    great video indeed

  • @sai_charan
    @sai_charan 3 года назад

    Thank you, Ivan!

  • @christianherrero3778
    @christianherrero3778 3 года назад +1

    Awesome

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 года назад +1

      Thanks, however check this episode out, it's even more awesome 😀 and it works better: ruclips.net/video/UNWIXYSZfZY/видео.html

    • @christianherrero3778
      @christianherrero3778 3 года назад +1

      @@WatchandLearnTutorials Ohh thanks!!

  • @zakharg
    @zakharg 4 года назад +1

    👍👍👍

  • @manassehbundi3062
    @manassehbundi3062 3 года назад

    hey How would you do for a python app/django app?
    Whenever i change a branch both staging and master subdomain reflect the same thing.

  • @khnaz35
    @khnaz35 11 месяцев назад

    I was closely following this tutorial and noticed that when setting up the Git Version Control repository, you chose to create it directly using cPanel's management tools, as opposed to cloning it from an externally hosted Git repository. What if I want to integrate with my private Git repository? What would be the method in that scenario?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  9 месяцев назад

      You can take a look at this video: ruclips.net/video/UNWIXYSZfZY/видео.html maybe that could help.

  • @MegaOnerb
    @MegaOnerb 3 года назад

    Amazing tutorial as always, let me ask can I use this to deploy wordpress sites? And do you know something about wordpress migration database like laravel?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 года назад +1

      You can of course. However, the database is always going to be a pain point with WP unfortunately. Git is just for files, and you will have to deploy your DB by hand. WP doesn't have migrations. And even if it did, it wouldn't help, because most of the options and configurations are written in database.

  • @jorgenash3452
    @jorgenash3452 4 года назад

    This approach is adviced for medium/big project? thankz

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  4 года назад

      I would use it on any size project, using FTP do deploy your site is outdated and also not exactly secure. I think this is much better, if your hosting supports it of course.

  • @kamalsharma2839
    @kamalsharma2839 Год назад

    Can we do this on hostinger hpanel and with React/nextJS with Sanity projects?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  Год назад

      Maybe if you are building completely static site, otherwise you would need some kind of build step, which this action does not cover.

  • @gt-tech
    @gt-tech 3 года назад

    First of all nice tutorial..nice work!
    I am curious if its possible when to upload on github automatic push and on server..with that example that made i need to add a remote repository of github and push the code..and after another remote repo with ssh for server. so i need to push second time to server.. can i make one push to github and github push automatic to ssh repo server??
    thanks, happy coding!

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 года назад

      Not sure if it's exactly what you need, but take a look at this episode: ruclips.net/video/UNWIXYSZfZY/видео.html here I'm using github actions to deploy to shared hosting, it's a better way then what I did in this video. So maybe you can use that to acomplish what you need.

    • @gt-tech
      @gt-tech 3 года назад

      @@WatchandLearnTutorials i check your video..thats better solution for me! but you sync file with ftp and package SamKirkland
      /
      FTP-Deploy-Action. it is posible to sync with something else? like ssh?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 года назад

      @@gt-tech For my site I used this guide: itnext.io/deploy-next-js-apps-using-github-actions-6322261757bc but I'm deploying it to Digital Ocean so I can install whatever I need, which may not be the case for shared hosting. And this is going through ssh and git. So essentially whenever I publish something to master, the server does git pull of the new version. So there is no need for FTP.

    • @gt-tech
      @gt-tech 3 года назад

      @@WatchandLearnTutorials thats better but its only for frontend frameworks javascript? or its possible to use for backend php frameworks? nothing change digital ocean or other provider! all its VMs so its the same! what OS do you have at yor vm and use that guide?
      Thank for help!

  • @Abhisheka9292
    @Abhisheka9292 Год назад

    you don't have showed ssh connection to local

  • @designninjaacademy
    @designninjaacademy 2 года назад

    Can this also work with private repo ?

  • @TheReisners
    @TheReisners 3 года назад

    HELP!? thanks for your great tutorial. I am running into a problem. i have two branches... master/dev. dev controls dev.mysite.com and master controls prod.mysite.com. my branches are clean and committed before i perform any checkouts.... yet when i push a committed change on the DEV i often get "failed to push some refs"... "working directory has unstaged changes"... yet it GIT STATUS says my working tree is clean... do you have any idea or tips (or a video) on how to work clean between both branches on the same git repo? its great to be able to have different files controlled in the same repo. I'm fairly new to git... thank you so much

    • @TheReisners
      @TheReisners 3 года назад

      one more note if it helps... i find when i pull after switching branches (even if they are clean and no changes) helps prevent this type of error...

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 года назад

      @@TheReisners I don't know, sorry. This video is just to show that something like this can be done, but I found out that Git on shared hosting, and running node.js apps on shared hosting have problems. So I would advise to use something like Github and Github actions for this. I will try to make a video about it.

  • @saketshukla4856
    @saketshukla4856 3 года назад

    i am not getting post-receive inside hooks. i am getting all this
    --applypatch-msg.sample fsmonitor-watchman.sample pre-applypatch.sample pre-merge-commit.sample pre-push.sample pre-receive.sample
    commit-msg.sample post-update.sample pre-commit.sample prepare-commit-msg.sample pre-rebase.sample update.sample---
    please help anyone

  • @kv_clips
    @kv_clips 3 года назад

    git push is not happening

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 года назад

      If you want help with something please include more information. "git push is not happening" means nothing to me.

    • @kv_clips
      @kv_clips 3 года назад

      @@WatchandLearnTutorials Buddy, first of all, when I create git repo in GIT Version Control in cpanel , my git repo shows an error "System could not found any branch in your repository".
      2nd issue is , I can clone remote repo but whenever I try to push to remote server nothing happen. By Nothing, I mean no prompt for username and password appear.
      Solve my issues please???

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 года назад

      @@kv_clips I would suggest that you ignore this video and try to make a setup like in this video: ruclips.net/video/UNWIXYSZfZY/видео.html it solves the same problem, but in much nicer and more elegant way. Also, here you should not have any trouble with git, because your repo will be hosted on GitHub. Git on shared hosting can be pain in the a** as you can see for yourself, somewhere it works, somewhere it doesn't it all depends on the hosting.

  • @tiffany-user
    @tiffany-user 2 года назад

    Эх, были бы субтитры на русском)

  • @maccosolutions
    @maccosolutions 3 года назад +1

    Great tutorial! You showed how to do this if you have a simple website hosted on the main domain (on a VPS). But how you suggest dealing with a website that already has multiple subdomains? I have 8 subdomains (for different aspects of the business) and each one requires a staging and dev environment, but I don't want to do crm.staging.domain(dot)com for each subdomain. Each subdomain also requires direct access to the server's SQL database, so the staging sites can't(?) be on a separate server/domain (Correct me if I am wrong).
    What are your thoughts (or anyones' thoughts) on how you would get around this?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  3 года назад +1

      Well first of all if your staging and other sites are on subdomains, they can also be on the same server, so that means that they would be able to access the DB without a problem. Even if they are on separate server, you can still access the DB, you just have to allow access to the port of the DB. Usually that is 3306 I think, or something like that.
      Also you need to have multiple subdomains for staging servers, I don't know how you would get around that.
      Now since you are dealing with a lot of sites and subdomains, you would really need a dev ops guy or girl to setup everything right. This is not a trivial functionality that you are looking for. And also I don't think this should be done on a shared hosting, using some VPS platform or something like AWS or Digital Ocean would be much better for that.
      Also you can take a look at this video ruclips.net/video/UNWIXYSZfZY/видео.html , it's an updated version of this one, so that may also give you some ideas on how to handle this.