Added support for Domain and Subdomain URLs
This commit is contained in:
parent
d42bc1fb4b
commit
5406aa55bb
7
.gitignore
vendored
7
.gitignore
vendored
@ -1 +1,8 @@
|
||||
logs/*
|
||||
|
||||
# Ignore everything in the /config directory
|
||||
config/*
|
||||
|
||||
# Except for example.env and testing.env
|
||||
!config/example.com.env
|
||||
!config/testing.example.com.env
|
||||
12
README.md
12
README.md
@ -18,10 +18,13 @@
|
||||
---
|
||||
|
||||
### **Test Example**
|
||||
For this example we'll set up a laravel site at the subdomain testing.example.com
|
||||
|
||||
**Input**: `config/testing.env`:
|
||||
```env
|
||||
# General Configurations
|
||||
PROJECT_NAME=testing.example.com
|
||||
PROJECT_NAME=testing
|
||||
BASE_URL=example.com
|
||||
APP_SERVICE_NAME=app-{PROJECT_NAME}
|
||||
|
||||
# Network
|
||||
@ -44,6 +47,13 @@ PHP_VERSION=8.3-fpm
|
||||
PHP_EXTENSIONS=pdo_mysql mbstring exif pcntl bcmath gd
|
||||
```
|
||||
|
||||
If you want to use a url without a subdomain use the following instead, it will use testing.com
|
||||
```env
|
||||
# General Configurations
|
||||
PROJECT_NAME=testing
|
||||
BASE_URL=com
|
||||
```
|
||||
|
||||
**Command**:
|
||||
```bash
|
||||
./setup.sh config/testing.env
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
# General Configurations
|
||||
PROJECT_NAME=example.com
|
||||
PROJECT_NAME=example
|
||||
BASE_URL=com
|
||||
APP_SERVICE_NAME=app-{PROJECT_NAME}
|
||||
|
||||
# Network
|
||||
@ -1,5 +1,6 @@
|
||||
# General Configurations
|
||||
PROJECT_NAME=testing.example.com
|
||||
PROJECT_NAME=testing
|
||||
BASE_URL=example.com
|
||||
APP_SERVICE_NAME=app-{PROJECT_NAME}
|
||||
|
||||
# Network
|
||||
Loading…
x
Reference in New Issue
Block a user