* Re: remote file editing and local copy for web development (like dreamweaver)
[not found] <mailman.7272.1408542357.1147.help-gnu-emacs@gnu.org>
@ 2014-08-20 13:53 ` Dan Espen
2014-08-21 13:37 ` Ted Zlatanov
1 sibling, 0 replies; 4+ messages in thread
From: Dan Espen @ 2014-08-20 13:53 UTC (permalink / raw)
To: help-gnu-emacs
Infrid <debate@infrid.com> writes:
> hi all,
> I'm a web developers and my co-workers use dreamweaver for editing PHP
> files in a live environment (I know is a bad practice) in this way:
>
> 1. From a menu they "open" the web site location, dreamweaver knows
> where the files are on the net.
>
> 2. They navigate in the file system end select the file for edit
>
> 3. dreamweaver actually download the file and it puts in a directory
> following the remote paths. Example: if you edit ~/dira/dirb/file.txt it
> create the path under c:\myWeb\dira\dirb\file.txt
>
> 4. When they save, dreamweaver write the local file and uploads it to
> the remote location.
> In the end you have a partial copy of the web site on your hard drive.
>
> how can I get the same behavior in emacs? I've searched for a packages
> for this without success.
>
> many thanks
I use makefiles:
DOWN_SITE:=http://site.xxx.net/uuuuuuu
UP_SITE:=ftpmysite.xxx.net
uploads:=\
index.html\
test.png
targets:=$(addsuffix .uploaded,$(uploads))
all: $(targets)
get:
wget -r $(DOWN_SITE)
define install_html
(\
echo -e "binary\n"\
"put $(subst .uploaded,,$@)\n"\
"close\n"\
"quit\n"\
) | ftp $(UP_SITE)
endef
define test_it
echo "put $(subst .uploaded,,$@)"
endef
%.uploaded: %
# $(test_it)
$(install_html)
echo "`date`" > $@
clean:
rm *.uploaded
--
Dan Espen
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: remote file editing and local copy for web development (like dreamweaver)
[not found] <mailman.7272.1408542357.1147.help-gnu-emacs@gnu.org>
2014-08-20 13:53 ` remote file editing and local copy for web development (like dreamweaver) Dan Espen
@ 2014-08-21 13:37 ` Ted Zlatanov
1 sibling, 0 replies; 4+ messages in thread
From: Ted Zlatanov @ 2014-08-21 13:37 UTC (permalink / raw)
To: help-gnu-emacs
On Wed, 20 Aug 2014 13:58:18 +0200 Infrid <debate@infrid.com> wrote:
I> 4. When they save, dreamweaver write the local file and uploads it to
I> the remote location.
I> In the end you have a partial copy of the web site on your hard drive.
I> how can I get the same behavior in emacs? I've searched for a packages
I> for this without success.
I think (info "(emacs) File Shadowing")
https://www.gnu.org/software/emacs/manual/html_node/emacs/File-Shadowing.html
may be useful.
Ted
^ permalink raw reply [flat|nested] 4+ messages in thread
* remote file editing and local copy for web development (like dreamweaver)
@ 2014-08-20 11:58 Infrid
2014-08-20 14:14 ` Eric Abrahamsen
0 siblings, 1 reply; 4+ messages in thread
From: Infrid @ 2014-08-20 11:58 UTC (permalink / raw)
To: help-gnu-emacs
hi all,
I'm a web developers and my co-workers use dreamweaver for editing PHP
files in a live environment (I know is a bad practice) in this way:
1. From a menu they "open" the web site location, dreamweaver knows
where the files are on the net.
2. They navigate in the file system end select the file for edit
3. dreamweaver actually download the file and it puts in a directory
following the remote paths. Example: if you edit ~/dira/dirb/file.txt it
create the path under c:\myWeb\dira\dirb\file.txt
4. When they save, dreamweaver write the local file and uploads it to
the remote location.
In the end you have a partial copy of the web site on your hard drive.
how can I get the same behavior in emacs? I've searched for a packages
for this without success.
many thanks
Infrid
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: remote file editing and local copy for web development (like dreamweaver)
2014-08-20 11:58 Infrid
@ 2014-08-20 14:14 ` Eric Abrahamsen
0 siblings, 0 replies; 4+ messages in thread
From: Eric Abrahamsen @ 2014-08-20 14:14 UTC (permalink / raw)
To: help-gnu-emacs
Infrid <debate@infrid.com> writes:
> hi all,
> I'm a web developers and my co-workers use dreamweaver for editing PHP
> files in a live environment (I know is a bad practice) in this way:
>
> 1. From a menu they "open" the web site location, dreamweaver knows
> where the files are on the net.
>
> 2. They navigate in the file system end select the file for edit
>
> 3. dreamweaver actually download the file and it puts in a directory
> following the remote paths. Example: if you edit ~/dira/dirb/file.txt it
> create the path under c:\myWeb\dira\dirb\file.txt
>
> 4. When they save, dreamweaver write the local file and uploads it to
> the remote location.
> In the end you have a partial copy of the web site on your hard drive.
>
> how can I get the same behavior in emacs? I've searched for a packages
> for this without success.
This sounds like *exactly* what tramp does, except for the part at the
end where you have a partial copy retained locally. You don't need to
install/load/configure tramp, it should work transparently if you find a
file with a remote server specification in the filename, ie
/user@host:path/to.file. With proper ssh configuration, it becomes very
simple.
To be honest, keeping a partial local copy sounds like a bad idea.
Either edit remotely with tramp, or edit locally with git or something
similar. But maybe someone can tell you how to do the partial
solution...
Eric
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-08-21 13:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.7272.1408542357.1147.help-gnu-emacs@gnu.org>
2014-08-20 13:53 ` remote file editing and local copy for web development (like dreamweaver) Dan Espen
2014-08-21 13:37 ` Ted Zlatanov
2014-08-20 11:58 Infrid
2014-08-20 14:14 ` Eric Abrahamsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.