-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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 #429 from rangerz/setup-domain
- Loading branch information
Showing
4 changed files
with
29 additions
and
21 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
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -o errexit | ||
|
||
[ -z "$1" ] && echo "Please specify a domain name (ex. magento.test)" && exit | ||
|
||
DOMAIN=$1 | ||
|
||
echo "Your system password has been requested to add an entry to /etc/hosts..." | ||
echo "127.0.0.1 ::1 $DOMAIN" | sudo tee -a /etc/hosts | ||
|
||
echo "Set https://${DOMAIN}/ to web/secure/base_url and web/secure/base_url" | ||
bin/magento config:set web/secure/base_url https://"$DOMAIN"/ | ||
bin/magento config:set web/unsecure/base_url https://"$DOMAIN"/ | ||
|
||
echo "Generating SSL certificate..." | ||
bin/setup-ssl "$DOMAIN" |
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