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 Behaviorcurl <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.
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 asfm 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. OKRelated Issues/Pull Requests
84