https://github.com/athlan/gitftp-php-test
https://github.com/athlan/gitftp-php-test
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/athlan/gitftp-php-test
- Owner: athlan
- Created: 2015-01-29T15:49:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-29T16:42:23.000Z (over 11 years ago)
- Last Synced: 2025-01-29T16:26:32.014Z (over 1 year ago)
- Language: PHP
- Size: 285 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `git ftp` example
See project page:
https://github.com/git-ftp/git-ftp
## Usage
While development, just use for deployment:
```
$ git ftp push
```
See also Scopes sections to mantain more than 1 server (staging, development, production).
https://github.com/git-ftp/git-ftp/blob/develop/man/git-ftp.1.md#scopes
## Setup environment (first time)
1. Clone git-ftp anywhere:
```
git clone https://github.com/git-ftp/git-ftp
```
Grant x permissions:
```
cd git-ftp && chmod +x git-ftp
```
2. Create symlink to be visible in `$PATH`
```
$ ln -s /bin/git-ftp /path/to/your/git-ftp/git-ftp
```
or
```
$ ln -s /usr/local/bin/git-ftp /path/to/your/git-ftp/git-ftp
```
## Setup in project
1. Initialize your gitftp settings
```
$ git config git-ftp.user john
$ git config git-ftp.url ftp.example.com
$ git config git-ftp.password secr3t
```
2. Initialize git ftp on remote server
```
$ git ftp init
```