From: Dan Espen <despen@verizon.net>
To: help-gnu-emacs@gnu.org
Subject: Re: remote file editing and local copy for web development (like dreamweaver)
Date: Wed, 20 Aug 2014 09:53:38 -0400 [thread overview]
Message-ID: <lt2992$gd5$1@dont-email.me> (raw)
In-Reply-To: mailman.7272.1408542357.1147.help-gnu-emacs@gnu.org
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
next parent reply other threads:[~2014-08-20 13:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.7272.1408542357.1147.help-gnu-emacs@gnu.org>
2014-08-20 13:53 ` Dan Espen [this message]
2014-08-21 13:37 ` remote file editing and local copy for web development (like dreamweaver) Ted Zlatanov
2014-08-20 11:58 Infrid
2014-08-20 14:14 ` Eric Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='lt2992$gd5$1@dont-email.me' \
--to=despen@verizon.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.