forked from meolu/walle-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request meolu#144 from meolu/optimize-staging
优化pull和对外邮件组
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ class WalleController extends Controller { | |
* checkout the current version 查看版本 | ||
*/ | ||
public function actionIndex() { | ||
echo sprintf("\n\033[32mwalle-web %s (built: %s)\033[0m\nCopyright (c) 2015-2016 The walle-web Group.\nGet Help from [email protected]. Enjoy It.\n\n", | ||
printf("\n\033[32mwalle-web %s (built: %s)\033[0m\nCopyright (c) 2015-2016 The walle-web Group.\nGet Help from [email protected]. Enjoy It.\n\n", | ||
Yii::$app->params['version'], Yii::$app->params['buildTime']); | ||
} | ||
|
||
|
@@ -45,7 +45,7 @@ public function actionUpgrade() { | |
$commander->runLocalCommand('/usr/bin/env git stash save'); | ||
// pull code 更新代码 | ||
echo 'pull code 更新代码: git pull ...', PHP_EOL; | ||
$commander->runLocalCommand('/usr/bin/env git pull'); | ||
$commander->runLocalCommand('/usr/bin/env git pull --rebase'); | ||
// stash pop local change 弹出暂存本地修改 | ||
echo 'stash pop local change 弹出暂存本地修改: git stash pop ...', PHP_EOL; | ||
$commander->runLocalCommand('/usr/bin/env git stash pop'); | ||
|