How can I deploy my website from Git on Windows? [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am trying to be more efficient in my work and take steps to stray away from SFTP.
I see services like "Deployhq" or "Docker" but they are not free.
I am hoping to automated myself in the idea that I just type in "git push" in my command line, and it would automatically deploy to my server as it pushes to git?
Does anyone have an idea on where to go? I look into Jenkin CI/CD but I am not sure if that is the correct direction.
Much appreciated.

This is mostly going to depend on your hosting company I believe. Some companies allow you to set up a git deploy usually through some form of control panel.
If you are hosting the site yourself or have access to the server and can ssh/install git, you can clone the repo to the server and set up a hook so that the server will pull changes whenever you push up to the remote repository.
Here are some good links on how git hooks work and how to create one:
https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
https://www.digitalocean.com/community/tutorials/how-to-use-git-hooks-to-automate-development-and-deployment-tasks

Related

Git store current commit hash in file [duplicate]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I wonder If there are any APIs or something for php to interact with GIT?
I want to print out information about branches, repositories etcetc, on a web page.
Is this possible?
A quick search turns up a github project https://github.com/kbjr/Git.php - which has a PHP library for accessing git using proc_open and usable in git safe mode.
It seems to be fairly easy to use. According to the api documents, you'd be able to get a list of branches in an array with these commands:
require_once('Git.php');
$repo = Git::open('/path/to/repo');
$branch_array = $repo->list_branches();
You'd substitute your own repo path. You would need the git commands installed for that to work.
As for creating a whole web page, there are complete systems for this - cgit, gitweb, gitphp and a number of others so it may be worth considering if any of those could be configured to meet your needs before creating a completely new tool.

What source control is available for PHP / SQL projects [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am working with a PHP web application that has a MS SQL back end. The development copy is hosted on a Windows server.
There will be a few developers joining me on the project, and I need some sort of source control so that (obviously) we don't over-write each other's work. But since a PHP/SQL project has to be run from the server, we can't each work with local copies and then push the updates to the server...we all have to be working on the server itself.
So I have three questions:
My initial thought was a simple check-in, check-out system, which should be ok for our small team of 3-4 programmers. So, what is (currently) a good program for that?
I also thought about each developer having his own folder in the wwwroot folder, his own full copy of the program, then pushing updates to a master copy, also on the same server. Is there a good program for doing that (file merging and conflict management)?
Which method do you think would be better?
Run servers all your local machines. There’s lots of ways of doing this. If you’re using Laravel, it has a server built in php artsian serve. PHP 7 also has its own server built in.
Use a version control system like Git. You can learn here
Do this as soon as you can!
Sadly however, this question is not a suitable Stack Overflow question, so will be likely be closed soon. Good luck!

Create setup for web application (PHP) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I developed a php web application in windows. As you know there is two service needed to do this; APACHE and MYSQL.
But my application will be hosted in custom computers, possibl no apache and no mysql in it. So I need a windows setup that install these services and also check if they are already exist and running.
Its my first time face with this, so please be as clear as possible on advices and examples.
Thank you
Under Windows environment, the simplest way is to install EasyPHP. To do this in an automated way, you'll need an install script (for quiet install for example). Check the website for details.
Hope it helps.

Is there a PHP api for GIT? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I wonder If there are any APIs or something for php to interact with GIT?
I want to print out information about branches, repositories etcetc, on a web page.
Is this possible?
A quick search turns up a github project https://github.com/kbjr/Git.php - which has a PHP library for accessing git using proc_open and usable in git safe mode.
It seems to be fairly easy to use. According to the api documents, you'd be able to get a list of branches in an array with these commands:
require_once('Git.php');
$repo = Git::open('/path/to/repo');
$branch_array = $repo->list_branches();
You'd substitute your own repo path. You would need the git commands installed for that to work.
As for creating a whole web page, there are complete systems for this - cgit, gitweb, gitphp and a number of others so it may be worth considering if any of those could be configured to meet your needs before creating a completely new tool.

Free, portable, all included, all in one, php Apache based server? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Free, portable, all included, all in one, (opensource is + ) php server? I have a USB FLASH 16gb card. I want to install on to it some kind of PHP server - some programm.exe which i could run on different computers without installing - call some localhost/phpserver and get my php scripts running.
So where to go to get such thing?
XAMPP and instructions:
http://www.pendriveapps.com/xampp-portable-web-server/
I'd try WAMP; hopefully it has what you are looking for.
I suggest XAMPP also but instead of pendriveapp fork, you can use the original "xampp lite" package served from their offical site. I's pretty portable and you can use without setup.
By the way, your problem will not be the choosing package. Problem is, you'll need an extremly fast flash drive or card.

Categories