[LON-CAPA-admin] editing problems on the server
Raeburn, Stuart
raeburn at msu.edu
Mon Jan 7 13:35:40 EST 2019
Nathan,
I would *not* edit files in res/winona/NMoore directly.
I do not see a good reason not to allow LON-CAPA's "Publish" action to take care of copying resources from priv/winona/NMoore/ to res/winona/NMoore, and to handle versioning, to insert missing id attributes, to send update notifications to nodes currently subscribed to a previously published resource in the winona domain (when you republish it after making changes), etc.
If you prefer to use some editor other than your web browser when authoring content, you could use webDAV. See section 18 "WebDAV access to Authoring Space" on p. 137 of the Authoring Manual (loncapa.winona.edu/adm/help/author.manual.pdf).
If you are using Ubuntu, and want to use webDAV, you need to have enabled mod_dav using:
sudo a2enmod dav
sudo a2enmod dav_fs
Stuart Raeburn
LON-CAPA Academic Consortium
________________________________________
From: LON-CAPA-admin <lon-capa-admin-bounces at mail.lon-capa.org> on behalf of Moore, Nathan T <nmoore at winona.edu>
Sent: Monday, January 7, 2019 1:07 PM
To: list about administration and system updating
Subject: [LON-CAPA-admin] editing problems on the server
I’m currently coding in problems from OpenStax University Physics. I’ve been using the web interface to author, which is fine. I was wondering today if I could just directly compose (or copy problems over to) the “/home/httpd/html/res” directory, as this is where the problems seem to reside?
Is this the only place my library of problems lives?
/home/httpd/html/res/winona/NMoore
This is the contents of a chapter, showing the problems, .meta, and the .subscription files, which look like track changes…
root at LonCappa:/home/httpd/html/res/winona/NMoore/openstax-university-physics-1/ch1# ls
p46b.1.problem p46.problem.meta p48.problem.meta
p46b.1.problem.meta p46.problem.meta.subscription p48.problem.meta.subscription
p46b.1.problem.meta.subscription p46.problem.subscription p48.problem.subscription
p46b.problem p47.problem p50.problem
p46b.problem.meta p47.problem.meta p50.problem.meta
p46b.problem.meta.subscription p47.problem.meta.subscription p50.problem.meta.subscription
p46b.problem.subscription p47.problem.subscription
p46.problem p48.problem
or
root at LonCappa:/home/httpd/html/res/winona/NMoore/openstax-university-physics-1/ch1# ls -l p46b.problem*
-rw-r--r-- 1 www www 487 Jan 17 2017 p46b.problem
-rw-r--r-- 1 www www 1337 Jan 17 2017 p46b.problem.meta
-rw-r--r-- 1 www www 188 Oct 28 10:58 p46b.problem.meta.subscription
-rw-r--r-- 1 www www 122 Aug 20 17:24 p46b.problem.subscription
Is this working too close to the edge? I assume I’d need to work (or chmod the problems) as the www user. Is there an additional database that would need to be updated?
Thanks!
--- --- --- ---
Nathan Moore, PhD
Physics, Winona State University
More information about the LON-CAPA-admin
mailing list