Page 1 of 1

[IMPLEMENTED] Add a "Local copy" option to Internet settings

Posted: Wed 01 Jul 2020 8:34 am
by bobmoss
Having just setup Cumulus MX on a Raspberry PI, I now want it to update a website running locally on the same machine.

The Wiki is a bit vague on how to do it without FTP, but after asking for help in the forum, it seems the only way to get Cumulus MX to copy files locally is to manually setup all the files under "Extra web files".

It would be great if, under the Web/FTP section there was a "local copy" option, where you could simply tick a box and put the local "/var/www/html" path in, and then it would work exactly the same as FTP.

Thanks.

Re: Add a "Local copy" option to Internet settings

Posted: Wed 01 Jul 2020 4:04 pm
by bobmoss
OK, I thought this was such a good idea, and I really couldn't be bothered to enter 20 odd extra web files in the configuration, I've spent the afternoon making the change myself and the pull request is awaiting admin approval!

Re: Add a "Local copy" option to Internet settings

Posted: Thu 02 Jul 2020 8:05 am
by mcrossley
I'll reply on the PR - it needs a little more work...

Re: Add a "Local copy" option to Internet settings

Posted: Thu 02 Jul 2020 9:45 am
by Phil23
bobmoss wrote: Wed 01 Jul 2020 4:04 pm I really couldn't be bothered to enter 20 odd extra web files in the configuration,
Just thinking on a tangent from the Windows World.
If I was faced with the issue I'd look at installing a very simple FTP server on my hosting PC.

I'm sure Pi has one. One suggestion is sudo apt install proftpd.

Re: Add a "Local copy" option to Internet settings

Posted: Thu 02 Jul 2020 10:03 am
by bobmoss
mcrossley wrote: Thu 02 Jul 2020 8:05 am I'll reply on the PR - it needs a little more work...
Thanks, I shall await your comments!

Re: Add a "Local copy" option to Internet settings

Posted: Thu 02 Jul 2020 10:16 am
by bobmoss
Phil23 wrote: Thu 02 Jul 2020 9:45 am Just thinking on a tangent from the Windows World.
If I was faced with the issue I'd look at installing a very simple FTP server on my hosting PC.
I'm sure Pi has one. One suggestion is sudo apt install proftpd.
Thanks, I do have the ftp server setup on the PI and could have gone down that route (and it would be best for most people at the moment). However I knew the "extra web files" could do a local copy (which is a better way of doing things), and I've got the programming skills to fix it, so thought I would have a go at changing it!

Re: Add a "Local copy" option to Internet settings

Posted: Thu 02 Jul 2020 9:17 pm
by Phil23
bobmoss wrote: Thu 02 Jul 2020 10:16 am and I've got the programming skills to fix it, so thought I would have a go at changing it!
One thought I had that some others rejected as an option to upload standard files with PHP extension.

Not applicable for fully fledged PHP sites was what someone mentioned.

But for one with limited html & PHP skills like myself if would be a good to use little bits of PHP on standard pages.

Probably something you could code; but ultimately Marks decision as to whether it was included.