Serve and SVN

13 views
Skip to first unread message

Christian Schimanski

unread,
Sep 4, 2014, 3:34:52 AM9/4/14
to serve...@googlegroups.com
Hi,

i am using Serve with svn and having problems when it comes to export. After checking out an serve svn project i work on it and serve runs fine. After i want to use serve export it runs only if there is no data in the html folder. If there is data i get this eror message 

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1375:in `initialize': Permission denied - html/ubs/fonts/.svn/all-wcprops (Errno::EACCES)

It looks like serve is try to copy/compile files from the.svn folder that is generated automaticaly on checkout. 


I really hope someone know what dto do because at this time everytime i need a new export i need to delete the html folder from svn and commit it new and thats really bad.


Thanks

John W. Long

unread,
Sep 4, 2014, 10:53:03 AM9/4/14
to serve...@googlegroups.com
Unfortunately, there isn’t anything like a .serve-ignore file to ignore files like this.

You are probably on your own to create an export task. What I’d recommend:

1. Use a tool like rake to create your own `rake export` task. Have the task do the following...
2. Copy the appropriate project files into a temporary directory
3. Run `serve export` in that directory
4. Copy the exported files wherever you want

Another option would be to fork serve and add functionality to ignore subversion directories, then send me a pull request.

—John


--
--
Serve Users Group
Mailing List: http://groups.google.com/group/serve-users/
Project: http://github.com/jlong/serve/

---
You received this message because you are subscribed to the Google Groups "Serve Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to serve-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

signature.asc

Christian Schimanski

unread,
Sep 4, 2014, 10:55:27 AM9/4/14
to serve...@googlegroups.com
If i search for rake i can not find it, do you have an url?
--

Christian Schimanski

Professional Webdeveloper 

t +49 211 - 417432 - 83

ecx.io | creating digital success
Bracknell - Düsseldorf - Munich - Wels - Vienna - Zurich

ecx.io | facebook.com/ecxio | twitter.com/ecxio

ecx.io germany GmbH | Plange Mühle 1 | 40221 Düsseldorf
t. +49 211 4174320 | f. +49 211 41743220
Handelsregister Düsseldorf HRB 65041 | Geschäftsleitung: Markus Dietrich, Christoph Mause, Isabell Rosenkranz, Jens van Slooten

ecx international AG | 85356 München | Terminalstrasse Mitte 18
Handelsregister München HRB 196211
Vorstand: Gerald Lanzerits, Christoph Mause, Helmut Nachbauer
Aufsichtsrat: Dr. Michael Cohen (Vorsitzender), Dipl.-Kfm. Ralph-Uwe Johann, Dr. Georg Unger

John W. Long

unread,
Sep 4, 2014, 11:01:18 AM9/4/14
to serve...@googlegroups.com
Rake is a ruby build tool. If you are more of a Javascript guy, you could use Gulp or something similar, too. You just need a script to follow the steps below.

Here’s the link to Rake: https://github.com/jimweirich/rake

—John
signature.asc

Jess Brown

unread,
Sep 4, 2014, 12:07:46 PM9/4/14
to serve...@googlegroups.com
Hi Christian, I'm not 100% sure what's causing the initial problem, but if you want to do what John suggests, something like this would work:

from your project directory:

mkdir ../project-tmp

then create a file in your project directory called Rakefile with these contents:

desc "Exporting..."
task :export do
  tmp_dir = "../project-tmp"
  html_dir = "html"
  puts "Exporting site..."
  system("rsync -avz --exclude '*.svn' ./ #{tmp_dir}/")
  system("cd #{tmp_dir} && serve export")
  system("rsync -avz #{tmp_dir}/html/ #{html_dir}/")
end


make sure you have rake installed (gem install rake)

then whenever you need to export, just run:

rake export

from your project directory

The html_dir is the directory you want your final html files exported to. It sound like its' the html directory in your project root.
Reply all
Reply to author
Forward
0 new messages