Skip to content

Commit f0bc2fb

Browse files
Merge pull request #89 from MarcelWeidum/4.x
Set `APP_URL` on installation
2 parents 2efa477 + c81b02c commit f0bc2fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ function larament() {
114114
local project_name="$1"
115115
composer create-project --prefer-dist CodeWithDennis/larament "$project_name" || return 1
116116
cd "$project_name" || return 1
117+
118+
# Update APP_URL in .env
119+
if [[ -f ".env" ]]; then
120+
sed -i '' "s|^APP_URL=.*|APP_URL=https://${project_name}.test|" .env
121+
fi
122+
117123
herd link --secure && herd open
118124
;;
119125
*)

0 commit comments

Comments
 (0)