Import Site using Server #1794
jordantrizz
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Somewhat related to #1515
I found it interesting that you couldn't open Publii and import an existing site on a remote server since the input folder was not shipped to the server.
Idea
When creating a new Publii site, an option called "Import from Server" should allow users to specify a server where the input folder resides.
Servers
Git
If you're using a git repository, it's either local, or remote. For local, there is no issue storing the input folder; it's a local repository. For a remote repository, either Github, Gitlab or Onedev, there are most likely build/deploy actions from which the input folder can be excluded.
FTP/SFTP
Since you're already asking for the remote path, this should be renamed to something like "Remote Web Accessible Path," and then added another option called "Remote Input Path," where the input folder can be stored and is not web-accessible.
Exporting Server Configuraiton
An additional option would be to export the configuration in whatever format you choose, xml/json etc that provides all of the above options. It can be copied and pasted into Public. The only field that wouldn't be provided would be authentication information.
I might be missing something, I'm new to Publii so open to feedback on this idea.
Beta Was this translation helpful? Give feedback.
All reactions