作者 王晓刚
1 个管道 的构建 通过 耗费 6 秒

自动部署与数据可配置

# 定义 stages
stages:
- pull
# 定义 job
job1:
stage: pull
script:
- cd /alidata/www/fast/adverh5
- git pull
\ No newline at end of file
... ...
... ... @@ -2,12 +2,8 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="3bd62d6a-e12b-4534-8418-e8a5d7424d73" name="默认的" comment="">
<change afterPath="$PROJECT_DIR$/.gitlab-ci.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/application/admin/view/goods/add.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/admin/view/goods/add.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/application/admin/view/goods/edit.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/admin/view/goods/edit.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/application/home/controller/Index.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/controller/Index.php" afterDir="false" />
<change beforePath="$PROJECT_DIR$/application/home/view/index/login.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/view/index/login.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/public/assets/js/backend/goods.js" beforeDir="false" afterPath="$PROJECT_DIR$/public/assets/js/backend/goods.js" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
... ... @@ -21,11 +17,11 @@
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="Index.php" pinned="false" current-in-tab="true">
<file leaf-file-name="Index.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/application/home/controller/Index.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="442">
<caret line="31" column="33" selection-start-line="31" selection-start-column="33" selection-end-line="31" selection-end-column="33" />
<state relative-caret-position="578">
<caret line="39" column="32" lean-forward="true" selection-start-line="39" selection-start-column="32" selection-end-line="39" selection-end-column="32" />
<folding>
<element signature="e#128#163#0#PHP" expanded="true" />
</folding>
... ... @@ -33,6 +29,15 @@
</provider>
</entry>
</file>
<file leaf-file-name=".gitlab-ci.yml" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/.gitlab-ci.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="136">
<caret line="8" column="15" lean-forward="true" selection-start-line="8" selection-start-column="15" selection-end-line="8" selection-end-column="15" />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="helper.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/thinkphp/helper.php">
<provider selected="true" editor-type-id="text-editor">
... ... @@ -120,6 +125,7 @@
<option value="$PROJECT_DIR$/public/assets/js/backend/goods.js" />
<option value="$PROJECT_DIR$/application/home/view/index/login.html" />
<option value="$PROJECT_DIR$/application/home/controller/Index.php" />
<option value="$PROJECT_DIR$/.gitlab-ci.yml" />
</list>
</option>
</component>
... ... @@ -199,93 +205,6 @@
<item name="adverh5" type="b2602c69:ProjectViewProjectNode" />
<item name="adverh5" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="adverh5" type="b2602c69:ProjectViewProjectNode" />
<item name="adverh5" type="462c0819:PsiDirectoryNode" />
<item name="application" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="adverh5" type="b2602c69:ProjectViewProjectNode" />
<item name="adverh5" type="462c0819:PsiDirectoryNode" />
<item name="application" type="462c0819:PsiDirectoryNode" />
<item name="admin" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="adverh5" type="b2602c69:ProjectViewProjectNode" />
<item name="adverh5" type="462c0819:PsiDirectoryNode" />
<item name="application" type="462c0819:PsiDirectoryNode" />
<item name="admin" type="462c0819:PsiDirectoryNode" />
<item name="controller" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="adverh5" type="b2602c69:ProjectViewProjectNode" />
<item name="adverh5" type="462c0819:PsiDirectoryNode" />
<item name="application" type="462c0819:PsiDirectoryNode" />
<item name="admin" type="462c0819:PsiDirectoryNode" />
<item name="validate" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="adverh5" type="b2602c69:ProjectViewProjectNode" />
<item name="adverh5" type="462c0819:PsiDirectoryNode" />
<item name="application" type="462c0819:PsiDirectoryNode" />
<item name="admin" type="462c0819:PsiDirectoryNode" />
<item name="view" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="adverh5" type="b2602c69:ProjectViewProjectNode" />
<item name="adverh5" type="462c0819:PsiDirectoryNode" />
<item name="application" type="462c0819:PsiDirectoryNode" />
<item name="admin" type="462c0819:PsiDirectoryNode" />
<item name="view" type="462c0819:PsiDirectoryNode" />
<item name="goods" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="adverh5" type="b2602c69:ProjectViewProjectNode" />
<item name="adverh5" type="462c0819:PsiDirectoryNode" />
<item name="application" type="462c0819:PsiDirectoryNode" />
<item name="extra" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="adverh5" type="b2602c69:ProjectViewProjectNode" />
<item name="adverh5" type="462c0819:PsiDirectoryNode" />
<item name="public" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="adverh5" type="b2602c69:ProjectViewProjectNode" />
<item name="adverh5" type="462c0819:PsiDirectoryNode" />
<item name="public" type="462c0819:PsiDirectoryNode" />
<item name="assets" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="adverh5" type="b2602c69:ProjectViewProjectNode" />
<item name="adverh5" type="462c0819:PsiDirectoryNode" />
<item name="public" type="462c0819:PsiDirectoryNode" />
<item name="assets" type="462c0819:PsiDirectoryNode" />
<item name="adverh5" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="adverh5" type="b2602c69:ProjectViewProjectNode" />
<item name="adverh5" type="462c0819:PsiDirectoryNode" />
<item name="public" type="462c0819:PsiDirectoryNode" />
<item name="assets" type="462c0819:PsiDirectoryNode" />
<item name="adverh5" type="462c0819:PsiDirectoryNode" />
<item name="js" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="adverh5" type="b2602c69:ProjectViewProjectNode" />
<item name="adverh5" type="462c0819:PsiDirectoryNode" />
<item name="public" type="462c0819:PsiDirectoryNode" />
<item name="assets" type="462c0819:PsiDirectoryNode" />
<item name="js" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="adverh5" type="b2602c69:ProjectViewProjectNode" />
<item name="adverh5" type="462c0819:PsiDirectoryNode" />
<item name="public" type="462c0819:PsiDirectoryNode" />
<item name="assets" type="462c0819:PsiDirectoryNode" />
<item name="js" type="462c0819:PsiDirectoryNode" />
<item name="backend" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
... ... @@ -303,16 +222,16 @@
<property name="settings.editor.selected.configurable" value="terminal" />
</component>
<component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS">
<recent name="D:\wamp\www\adverh5\application\home\view" />
<recent name="D:\wamp\www\adverh5\application\index\view\home\index" />
</key>
<key name="CopyFile.RECENT_KEYS">
<recent name="D:\wamp\www\adverh5" />
<recent name="D:\wamp\www\adverh5\public\assets\adverh5\css" />
<recent name="D:\wamp\www\adverh5\public\assets\adverh5\img" />
<recent name="D:\wamp\www\adverh5\application\home\view\index" />
<recent name="D:\wamp\www\adverh5\public\assets\adverh5\js" />
<recent name="D:\wamp\www\adverh5\public" />
</key>
<key name="MoveFile.RECENT_KEYS">
<recent name="D:\wamp\www\adverh5\application\home\view" />
<recent name="D:\wamp\www\adverh5\application\index\view\home\index" />
</key>
</component>
<component name="RunDashboard">
... ... @@ -338,12 +257,12 @@
<option name="presentableId" value="Default" />
<updated>1571368480027</updated>
<workItem from="1571368481262" duration="23015000" />
<workItem from="1571618159935" duration="2519000" />
<workItem from="1571618159935" duration="3254000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="25534000" />
<option name="totallyTimeSpent" value="26269000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
... ... @@ -650,14 +569,21 @@
</entry>
<entry file="file://$PROJECT_DIR$/application/home/controller/Index.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="442">
<caret line="31" column="33" selection-start-line="31" selection-start-column="33" selection-end-line="31" selection-end-column="33" />
<state relative-caret-position="578">
<caret line="39" column="32" lean-forward="true" selection-start-line="39" selection-start-column="32" selection-end-line="39" selection-end-column="32" />
<folding>
<element signature="e#128#163#0#PHP" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/.gitlab-ci.yml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="136">
<caret line="8" column="15" lean-forward="true" selection-start-line="8" selection-start-column="15" selection-end-line="8" selection-end-column="15" />
</state>
</provider>
</entry>
</component>
<component name="masterDetails">
<states>
... ...
... ... @@ -16,15 +16,15 @@ return [
// 数据库类型
'type' => Env::get('database.type', 'mysql'),
// 服务器地址
'hostname' => Env::get('database.hostname', '127.0.0.1'),
'hostname' => Env::get('database.hostname', 'rm-m5eblhc9o3515i25n.mysql.rds.aliyuncs.com'),
// 数据库名
'database' => Env::get('database.database', 'adverh5'),
// 用户名
'username' => Env::get('database.username', 'root'),
'username' => Env::get('database.username', 'db136s1ehvo1yn73'),
// 密码
'password' => Env::get('database.password', ''),
'password' => Env::get('database.password', 'cxz307311SJK'),
// 端口
'hostport' => Env::get('database.hostport', ''),
'hostport' => Env::get('database.hostport', '3306'),
// 连接dsn
'dsn' => '',
// 数据库连接参数
... ...