Skip to content
This repository was archived by the owner on Jan 29, 2021. It is now read-only.

Commit 43a6b4a

Browse files
committed
Added config for app.php and artisan host
1 parent 06f9232 commit 43a6b4a

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

app.txt

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
return array(
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Application URL
8+
|--------------------------------------------------------------------------
9+
|
10+
| This URL is used by the console to properly generate URLs when using
11+
| the Artisan command line tool. You should set this to the root of
12+
| your application so that it is used when running Artisan tasks.
13+
|
14+
*/
15+
16+
'url' => 'http://#HOST#'
17+
18+
);

build.xml

+13
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,19 @@
179179
</replaceregexp>
180180
</filterchain>
181181
</copy>
182+
<if>
183+
<available file='app/config/${env.name}/app.php' type='file' />
184+
<then>
185+
<delete file="app/config/${env.name}/app.php" failonerror="false" />
186+
</then>
187+
</if>
188+
<copy file="build/app.txt" tofile="app/config/${env.name}/app.php" overwrite="true">
189+
<filterchain>
190+
<replaceregexp>
191+
<regexp pattern="#HOST#" replace="${env.host}" ignoreCase="false" />
192+
</replaceregexp>
193+
</filterchain>
194+
</copy>
182195
<echo message="Done." />
183196

184197
<echo message="Writing environment..." />

0 commit comments

Comments
 (0)