Установка мерзавца repo на моем GoDaddy, размещающем план

Я думаю, что реализация Apple просто лучше поддерживается и все еще находится в активной разработке. Есть и другие места, такие как GNUStep , но они все еще выглядят очень хорошо на уровне NextStep / OpenStep. К сожалению, с тех пор многое произошло!

19
задан Matt 12 August 2016 в 08:32
поделиться

1 ответ

First, you will need to have git installed on GoDaddy. I'm not sure if this is possible. Git supports local user installs, but you need to have certain development tools handy to do it. Download git, and see if you can ./configure && make && make install -- if so, it will put it in your ~/bin directory.

We use git extensively for controlling production. But rather than deploying on push, may I suggest that you ssh to the box and do a git pull ?

More specifically, create a "Release" branch, and then when you are ready to deploy, simply merge your changes into the Release branch, ssh to the server, and git pull.

For example

ssh user@godaddyhost.com
cd /path/to/project

#ok, assuming you are on the Release branch
git fetch
git merge branch-with-new-changes-on-it

# update the remote Release branch with the merge
git push origin HEAD

This simple workflow allows developers to see exactly what is on the production server at all times, and to merge other changes in with theirs before asking for a deployment. In fact, we require that all production changes be fully merged before requesting a deployment of your branch.

--

If you do manage to get git installed on GoDaddy, and you REALLY want to auto-deploy when you push to it, then take a look at the post-update hook.

http://git-scm.com/docs/githooks

--

If you cannot get git installed on GoDaddy, then see if they support rsync. Then you can have a simple bash script somewhere that will

  1. pull your changes
  2. rsync them to godaddy

--

There are many ways to do it. Perhaps this will help with direction a bit...

3
ответ дан 30 November 2019 в 04:44
поделиться
Другие вопросы по тегам:

Похожие вопросы: