-
Notifications
You must be signed in to change notification settings - Fork 60
Compiling to given directory #9
Comments
Agreed on both fronts. Will see if I can push it into hotfix release (0.2.1) next week. Thanks! |
Awesome! I'll see if I can free up some time to try and help you out with some actual code, unless you beat me to it. |
Hi. I'm experiencing this problem in 0.5.3 beta. Edit: Moved |
Hi @alexgieg, can you explain more what you are doing? In my env static generation works fine, $ mkdir src dest
$ phr init src
$ ls -las src/
4 drwxrwxr-x 3 walter walter 4096 Feb 5 19:08 .
4 drwxrwxr-x 3 walter walter 4096 Feb 5 19:08 ..
4 drwxrwxr-x 9 walter walter 4096 Feb 5 19:08 .phrozn
$ phr up src dest
Phrozn 0.5.3DEV by Victor Farazdagi
Starting static site compilation.
[OK] Source directory located: /home/walter/git/test/src/.phrozn/
[OK] Destination directory located: /home/walter/git/test/dest/
[OK] ./src/.phrozn/entries/demos/tabs.twig parsed
[OK] ./dest/demos/tabs.html written
[OK] ./src/.phrozn/entries/demos/modal.twig parsed
[OK] ./dest/demos/modal.html written
[OK] ./src/.phrozn/entries/demos/twipsy.twig parsed
[OK] ./dest/demos/twipsy.html written
[OK] ./src/.phrozn/entries/demos/popup.twig parsed
[OK] ./dest/demos/popup.html written
[OK] ./src/.phrozn/entries/about.twig parsed
[OK] ./dest/about/index.html written
[OK] ./src/.phrozn/styles/bootstrap.less parsed
[OK] ./dest/styles/bootstrap.css written
[OK] ./src/.phrozn/styles/default.less parsed
[OK] ./dest/styles/default.css written
[OK] ./src/.phrozn/scripts/default.js parsed
[OK] ./dest/scripts/default.js written
[OK] ./dest/media/README copied
[OK] ./dest/media/img/phrozn.png copied
[OK] ./dest/media/img/README copied
Phrozn is extremely flexible static site generator for PHP.
For additional information, see http://phrozn.info
$ ls -l dest/
total 32
drwxrwxr-x 2 walter walter 4096 Feb 5 19:09 about
drwxrwxr-x 2 walter walter 4096 Feb 5 19:09 demos
-rw-rw-r-- 1 walter walter 10328 Feb 5 19:09 index.html
drwxrwxr-x 3 walter walter 4096 Feb 5 19:09 media
drwxrwxr-x 2 walter walter 4096 Feb 5 19:09 scripts
drwxrwxr-x 2 walter walter 4096 Feb 5 19:09 styles Effectively |
This could be related to #75 |
Ah! I got what was wrong. Instead of using With a relative destination path:
(Followed by several error messages due to the root filesystem being read-only.) With an absolute destination path:
I guess a sanity check with an error message would solve this nicely, but it'd be more interesting if the
With a corresponding Edit: Moved |
I think that this issue is absolutelly related to PR #75 that should simplify the project generation. The regenerate option not working I think that we need to open a dedicated issue for this problem in order to simplify issues management. |
Hi! Sorry for the delay. True enough, I'm opening a new issue about the regen not working: #76. |
Compiling into custom directory is now implemented. And since -R/--regen issue got its own ticket, closing this one. |
Currently you should be able to compile your site to a specific directory using
phr up [src] [dst]
. I have two problems with this.For some reason
../
is appended to the directory. So when I tryphr up .phrozn/ test/
it compiles to my current directory. To have to place the files in test I must usephr up .phrozn/ test/test/
.Compiling to a different directory than the current one should be far more common than compiling from another directory than where .phrozn resides, since that is most likely your project's root. Hence I suggest the
[src]
and[dst]
parameters switch order.The text was updated successfully, but these errors were encountered: