Skip to content

Commit 06d7b61

Browse files
committed
Apply bash code
1 parent 0d59592 commit 06d7b61

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,13 @@ 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-
herd link && herd secure && herd open
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+
123+
herd link --secure && herd open
118124
;;
119125
*)
120126
return 1

0 commit comments

Comments
 (0)