Тёмный

Automatic Deployments On Shared Hosting 

Watch and Learn
Подписаться 34 тыс.
Просмотров 22 тыс.
50% 1

Опубликовано:

 

17 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 64   
@_romeopeter
@_romeopeter 3 года назад
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 года назад
You actually have an example for deploying Node or React apps. github.com/marketplace/actions/ftp-deploy
@ivanpichkar8192
@ivanpichkar8192 4 года назад
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 :)
@WatchandLearnTutorials
@WatchandLearnTutorials 4 года назад
Glad I could help ;)
@Montes11985
@Montes11985 2 года назад
AWESOME ! thank you Master, im new ussing git, and this aplication with yout tutorial its such usefull! hugs from Perú
@WatchandLearnTutorials
@WatchandLearnTutorials 2 года назад
Glad I could help 😀
@cvallejoec
@cvallejoec 4 года назад
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 года назад
I did this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-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.
@matthewsmith9272
@matthewsmith9272 4 года назад
This is a very long overdue video. Great work!
@WatchandLearnTutorials
@WatchandLearnTutorials 4 года назад
Thanks :D
@chanmyaemaung
@chanmyaemaung 4 года назад
Thanks brother. I've never used it before like that.
@WatchandLearnTutorials
@WatchandLearnTutorials 4 года назад
It's much better then deploying your changes via FTP.
@zoltanrakottyai
@zoltanrakottyai 3 года назад
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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-UNWIXYSZfZY.html
@Cwiet
@Cwiet 3 года назад
Thanks for the video! It did help me a lot.
@WatchandLearnTutorials
@WatchandLearnTutorials 3 года назад
I'm glad the video helped you. Thanks for watching 😃
@sukhpal3y
@sukhpal3y 3 года назад
nicely explained video. achieved my task. thank you very much
@WatchandLearnTutorials
@WatchandLearnTutorials 3 года назад
I'm glad this video helped you. 😃
@sagardolui2998
@sagardolui2998 3 года назад
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. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-UNWIXYSZfZY.html
@rajshrishrimal2653
@rajshrishrimal2653 4 года назад
Superb video 💥🎉🎆
@WatchandLearnTutorials
@WatchandLearnTutorials 4 года назад
Thanks ;)
@janmichaelbesinga3867
@janmichaelbesinga3867 3 года назад
So accurate. Just exactly what i need. Thank you!
@WatchandLearnTutorials
@WatchandLearnTutorials 3 года назад
Glad I could help :)
@rapsontembo9391
@rapsontembo9391 2 года назад
great video indeed
@SuvroImran
@SuvroImran 3 года назад
Thank you so much
@WatchandLearnTutorials
@WatchandLearnTutorials 3 года назад
No problem, glad I could help 😀
@sai_charan
@sai_charan 3 года назад
Thank you, Ivan!
@christianherrero3778
@christianherrero3778 3 года назад
Awesome
@WatchandLearnTutorials
@WatchandLearnTutorials 3 года назад
Thanks, however check this episode out, it's even more awesome 😀 and it works better: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-UNWIXYSZfZY.html
@christianherrero3778
@christianherrero3778 3 года назад
@@WatchandLearnTutorials Ohh thanks!!
@zakharg
@zakharg 4 года назад
👍👍👍
@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 10 месяцев назад
You can take a look at this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-UNWIXYSZfZY.html maybe that could help.
@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.
@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 года назад
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.
@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.
@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.
@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
@WatchandLearnTutorials
@WatchandLearnTutorials 3 года назад
You can just create that file yourself.
@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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-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!
@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.
@designninjaacademy
@designninjaacademy 2 года назад
Can this also work with private repo ?
@WatchandLearnTutorials
@WatchandLearnTutorials 2 года назад
Of course 😀
@Abhisheka9292
@Abhisheka9292 Год назад
you don't have showed ssh connection to local
@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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-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 года назад
Эх, были бы субтитры на русском)
@WatchandLearnTutorials
@WatchandLearnTutorials 2 года назад
I don't know Russian so probably not. 😀
@sahilxd440
@sahilxd440 2 года назад
@@WatchandLearnTutorials u tallk like russian where u originated frm?
@WatchandLearnTutorials
@WatchandLearnTutorials 2 года назад
@@sahilxd440 I'm from Croatia.
@maccosolutions
@maccosolutions 3 года назад
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 года назад
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 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-UNWIXYSZfZY.html , it's an updated version of this one, so that may also give you some ideas on how to handle this.
Далее
Deploy To Shared Hosting With Github Actions
15:19
Просмотров 44 тыс.
Deploy your Rust project in 20 minutes
20:29
Просмотров 48 тыс.
Deploy Node.js Apps To Shared Hosting
17:50
Просмотров 58 тыс.
Laravel deployment with GitHub Actions
49:45
Просмотров 24 тыс.
The cloud is over-engineered and overpriced (no music)
14:39
Git Tutorial For Dummies
19:25
Просмотров 1,1 млн
How GitHub Actions 10x my productivity
8:18
Просмотров 417 тыс.