git - Using yiic to update application via github -


we have application written in yii 1.1, maintain , control aspects of application , servers. lives on variety of servers. maintain code base locally through git , publish our github repo. when roll out updates or bug fixes have go each box , update them 1 @ time. grows more , more time consuming more applications , servers deploy.

we hoping streamline git pull process doing via admin section, remotely. thought tapping github webhooks feature don't want automatic. want control applications updates. next, thought using yiic command live in code base , can run shell git pull scripts. security of top priority in whole thing.

do forsee security issues if create yiic class handle defined git commands layer of security tokens authenticate controller yiic commands? maybe has done similar , can shed insight approach , problems?

i created admin screen let every user switch branch in there personal development environment (without access server). did using exec in php , using git client hooks (post-merge) https://git-scm.com/book/en/v2/customizing-git-git-hooks update rights of folders , files (you can not sure right after pull). merging , such use bitbucket api.

for our live environment , pre-live environment use deploybot.com. wil upload files if branch updated. pre-live environment update automaticly. live environment have press button (will automate done using api monday morning before arrive @ work). if it's pulling use service this. although not pull, upload/remove thw new, altered or delete files. in admin panel can add button make api call allowing deploybot deploy code. it's easier , free or cheap (depending on needs)

regarding security. guess depend on security of admin screen , of github account. if people have access github code alter live code, 'problem'. if have access admin screen, guess have bigger problems them having ability pull code.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -