Fix domain format to match desired pattern
Changed from double subdomain format (anna.recruitai.startanaicompany.com)
to single concatenated format (annarecruit.startanaicompany.com).
Changes:
- deploy-to-coolify.example.sh: Updated FULL_DOMAIN to ${SUBDOMAIN}recruit.startanaicompany.com
- .env.example: Updated comment to show correct example (annarecruit.startanaicompany.com)
- README.md: Updated domain examples to use correct format
- COOLIFY_SETUP.md: Updated all DNS and domain examples to use correct format
This ensures deployments generate domains like:
- annarecruit.startanaicompany.com (when SUBDOMAIN=anna)
- johnrecruit.startanaicompany.com (when SUBDOMAIN=john)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -35,7 +35,7 @@ SOCIAL_FACEBOOK=
|
|||||||
# ===================================
|
# ===================================
|
||||||
# Deployment Configuration
|
# Deployment Configuration
|
||||||
# ===================================
|
# ===================================
|
||||||
# Your custom subdomain (e.g., 'yourname' becomes yourname.recruitai.startanaicompany.com)
|
# Your custom subdomain (e.g., 'anna' becomes annarecruit.startanaicompany.com)
|
||||||
SUBDOMAIN=yourname
|
SUBDOMAIN=yourname
|
||||||
|
|
||||||
# Your Gitea username and repository name
|
# Your Gitea username and repository name
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ chmod +x deploy-to-coolify.sh
|
|||||||
|
|
||||||
The script will:
|
The script will:
|
||||||
- Create a Coolify application
|
- Create a Coolify application
|
||||||
- Configure the domain (subdomain.recruitai.startanaicompany.com)
|
- Configure the domain (subdomainrecruit.startanaicompany.com)
|
||||||
- Set up Traefik labels for HTTPS
|
- Set up Traefik labels for HTTPS
|
||||||
- Configure webhook for automatic deployments
|
- Configure webhook for automatic deployments
|
||||||
- Trigger initial deployment
|
- Trigger initial deployment
|
||||||
@@ -136,7 +136,7 @@ The script will:
|
|||||||
Add a CNAME record in Cloudflare (or your DNS provider):
|
Add a CNAME record in Cloudflare (or your DNS provider):
|
||||||
|
|
||||||
- **Type**: CNAME
|
- **Type**: CNAME
|
||||||
- **Name**: `acme.recruitai` (or your subdomain)
|
- **Name**: `acmerecruit` (or your subdomain + "recruit")
|
||||||
- **Target**: `app.coolify.io` (or your Coolify instance domain)
|
- **Target**: `app.coolify.io` (or your Coolify instance domain)
|
||||||
- **Proxy**: Enabled (for Cloudflare)
|
- **Proxy**: Enabled (for Cloudflare)
|
||||||
|
|
||||||
@@ -145,8 +145,8 @@ Wait 2-3 minutes for DNS propagation and deployment to complete.
|
|||||||
### 6. Access Your Site
|
### 6. Access Your Site
|
||||||
|
|
||||||
Your site will be available at:
|
Your site will be available at:
|
||||||
- **Public Site**: `https://acme.recruitai.startanaicompany.com`
|
- **Public Site**: `https://acmerecruit.startanaicompany.com`
|
||||||
- **Admin Panel**: `https://acme.recruitai.startanaicompany.com/admin/login`
|
- **Admin Panel**: `https://acmerecruit.startanaicompany.com/admin/login`
|
||||||
|
|
||||||
On first visit to admin, create your admin account.
|
On first visit to admin, create your admin account.
|
||||||
|
|
||||||
@@ -190,7 +190,7 @@ Should show a webhook with URL: `https://app.coolify.io/api/v1/deploy?uuid=...`
|
|||||||
|
|
||||||
Check DNS configuration:
|
Check DNS configuration:
|
||||||
```bash
|
```bash
|
||||||
dig acme.recruitai.startanaicompany.com
|
dig acmerecruit.startanaicompany.com
|
||||||
```
|
```
|
||||||
|
|
||||||
Should point to your Coolify server or Cloudflare.
|
Should point to your Coolify server or Cloudflare.
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ chmod +x deploy-to-coolify.sh
|
|||||||
|
|
||||||
The script will:
|
The script will:
|
||||||
- Create a Coolify application
|
- Create a Coolify application
|
||||||
- Configure domain (yourname.recruitai.startanaicompany.com)
|
- Configure domain (yournamerecruit.startanaicompany.com)
|
||||||
- Set up webhooks for automatic deployments
|
- Set up webhooks for automatic deployments
|
||||||
- Generate database and session secrets
|
- Generate database and session secrets
|
||||||
- Trigger initial deployment
|
- Trigger initial deployment
|
||||||
|
|||||||
@@ -79,8 +79,8 @@ COOLIFY_DESTINATION_UUID="eg0g8s04soo84ock8kw4wkgo" # coolify destination
|
|||||||
# Repository URL
|
# Repository URL
|
||||||
REPO_URL="https://git.startanaicompany.com/${GITEA_USERNAME}/${GITEA_REPO_NAME}.git"
|
REPO_URL="https://git.startanaicompany.com/${GITEA_USERNAME}/${GITEA_REPO_NAME}.git"
|
||||||
|
|
||||||
# Domain
|
# Domain (e.g., annarecruit.startanaicompany.com or johnrecruit.startanaicompany.com)
|
||||||
FULL_DOMAIN="${SUBDOMAIN}.recruitai.startanaicompany.com"
|
FULL_DOMAIN="${SUBDOMAIN}recruit.startanaicompany.com"
|
||||||
|
|
||||||
echo "========================================="
|
echo "========================================="
|
||||||
echo " AI Recruitment Site Deployment"
|
echo " AI Recruitment Site Deployment"
|
||||||
|
|||||||
Reference in New Issue
Block a user