rtCamp / Frappe-Manager

A CLI tool based on Docker Compose to easily manage Frappe based projects.
MIT License
107 stars 22 forks source link

Creation of website with any Fully Qualified Domain Name (FQDN). #113

Open Xieyt opened 6 months ago

Xieyt commented 6 months ago

Description Presently, with the fm, users are limited to creating sites that function as subdomains of localhost. Consequently, when such sites are deployed on a server and accessed via domain names mapped in the hosts file, they remain inaccessible from other computers. This issue arises because the mapping of subdomains of localhost to either public or private IP addresses encounters functionality challenges.

To address this limitation, fm should not restrict sitename to subdomain of localhost only, then users will need to manually perform hosts file mappings for sites that are not subdomains of localhost. To streamline this process, a command such as fm hosts sync can be implemented to facilitate hosts file synchronization for these scenarios.

Use Case To use fm in servers.

Expected Behavior curl <sitename> and the site should be accessible. OK

Related Issues/Pull Requests

84

### Tasks
- [ ] https://github.com/rtCamp/Frappe-Manager/pull/117
- [ ] Add `fm self update hosts` to sync hosts file with the current list of sites.
Xieyt commented 6 months ago

FQDN support is implemented in #117. Currently user will have to map the domain in hosts file.