Skip to content

Sub-domains: Inverse the symlink to point to the public/ dir from public_html for updates #27

@nelson6e65

Description

@nelson6e65

Hi.

I'm using https://servicioshosting.com, and instructions works! 🤡

But... When I use git pull I get some issues, since public is a symbolic link and I have to make cp ... mv ... etc each time I update content in my public/ folder in my repo.

For sub-domains, I use a symbolic link as sub-domain "folder" to point to my awesome/public/ folder directly:

ln -s ~/apps/awesome/public ~/public_html/awesome

It's working like a charm; no need to modify the routes in my public/index.php.

My questions are...

There something I'm not considering that will become a trouble later?

It only works in https://servicioshosting.com and may fail in other hosting providers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions