Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit43f80ed

Browse files
Adding screenshot
1 parent73da8a8 commit43f80ed

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

‎_docs/yaml-examples/examples/transferring-php-ftp.md‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ toc: true
1515
1616
##The Example Php Project
1717

18-
The example project can be found on[Github](https://github.com/anna-codefresh/php-composer-sample-app). The application is a simple Php application that displays an example timer.
18+
The example project can be found on[Github](hhttps://github.com/codefresh-contrib/ftp-php-app). The application is a simple Php application that displays an example timer.
1919

2020
{% include image.html
2121
lightbox="true"
@@ -60,13 +60,13 @@ steps:
6060
title:"Cloning main repository..."
6161
type:"git-clone"
6262
arguments:
63-
repo:"anna-codefresh/php-composer-sample-app"
63+
repo:"codefresh-contrib/ftp-php-app"
6464
git:"github"
6565
stage:"clone"
6666
install_dependencies:
6767
title:"Collecting Php dependencies..."
6868
type:"freestyle"
69-
working_directory:"./php-composer-sample-app"
69+
working_directory:"./ftp-php-app"
7070
arguments:
7171
image:"composer:1.9.3"
7272
commands:
@@ -76,7 +76,7 @@ steps:
7676
ftp_transfer:
7777
title:"Transferring application to VM via ftp..."
7878
type:"freestyle"
79-
working_directory:"./php-composer-sample-app"
79+
working_directory:"./ftp-php-app"
8080
arguments:
8181
image:"dockito/lftp-client:latest"
8282
environment:
@@ -85,14 +85,23 @@ steps:
8585
-HOST=<HOST>
8686
-PUB_FTP_DIR=<PATH/TO/DIR>
8787
commands:
88-
-lftp -e "set ftp:use-site-utime2 false; mirror -x ^\.git/$ -X flat-logo.png -p -R php-composer-sample-app $PUB_FTP_DIR/php-composer-sample-app; exit" -u $USER,$PASSWORD $HOST
88+
-lftp -e "set ftp:use-site-utime2 false; mirror -x ^\.git/$ -X flat-logo.png -p -Rftp-php-ap $PUB_FTP_DIR/ftp-php-app; exit" -u $USER,$PASSWORD $HOST
8989
stage:"transfer"
9090
```
9191
This pipeline does the following:
9292
9393
1. A [git-clone]({{$site.baseurl}}/docs/codefresh-yaml/steps/git-clone/) step that clones the main repository
9494
2. A [freestyle step]($$site.baseurl}}/docs/codefresh-yaml/steps/freestyle/) that installs the necessary Php dependencies for our application
95-
3. A freestyle step that transfers our application via ftp
95+
3. A freestyle step that transfers our application via ftp. Note that you will need to change the environment variables to your respective values, either in the YAML itself (above), or through the pipeline settings:
96+
97+
{% include image.html
98+
lightbox="true"
99+
file="/images/examples/php-file-transfer/variables.png"
100+
url="/images/examples/php-file-transfer/variables.png"
101+
alt="Codefresh Enbironment Variables"
102+
caption="Codefresh Enbironment Variables"
103+
max-width="90%"
104+
%}
96105
97106
## What to Read Next
98107
-6.35 KB
Binary file not shown.
21.1 KB
Loading

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp