Problem uploading to server

35 views
Skip to first unread message

jaiden...@gmail.com

unread,
Mar 22, 2013, 11:19:44 AM3/22/13
to apostr...@googlegroups.com

Good morning,

I have worked on mi desktop (Ubuntu) a project with apostrophe and this proyect have been working very well, however I uploaded this project to the server and this project is not working. I do not know what is happening. The files .css and .js are not working. The following is is the link to my site:

http://www.riusoftware.com/paginabeagleit/ - when I am using this link the files .css and .js are not working

Tom said me, that probably did not have the .htaccess file, or your server is not configured to recognize it. However I verified the file and I consulted with my hosting and all is OK...



I hope that you can help me..

Giorgos Tsoukalas

unread,
Mar 22, 2013, 11:22:34 AM3/22/13
to apostr...@googlegroups.com
Make sure you do a cache clear and if this doesn't work check the permissions in web/uploads
--
You received this message because you are subscribed to the Google Groups "apostrophenow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apostropheno...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Tom Boutell

unread,
Mar 22, 2013, 1:53:53 PM3/22/13
to apostr...@googlegroups.com
You tossed the site in a subdirectory. Is that what you did in your
local dev environment? Apostrophe is mainly meant to be the root of
your site, although options exist to work around this.
--
Tom Boutell
P'unk Avenue
215 755 1330
punkave.com
window.punkave.com

jaiden...@gmail.com

unread,
Mar 22, 2013, 3:13:06 PM3/22/13
to apostr...@googlegroups.com

Giorgio, I had cleared cache and the permissions in web/uploads is OK..


Thank you for your help...
Message has been deleted
Message has been deleted

jaiden...@gmail.com

unread,
Mar 22, 2013, 3:16:50 PM3/22/13
to apostr...@googlegroups.com

Tom, you have reason, I tossed the site in a subdirectory (shared server) and this is the procedure:

  1. Modify the project web root

  2. Note: Here I am using the top level public directory (or director root),  I include the correct info if this is not beagleit project

    • rsync -av /home/nameserver/sfproject/beagleit/web/ /home/nameserver/public_html/paginabeagleit/

    • rm -r /home/nameserver/sfproject/beagleit/web

    • cd ../../public_html/

  3. In the Front Controller

    • vi index.php

    • Change require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');

    • For require_once(dirname(__FILE__).'/../../sfproject/beagleit/config/ProjectConfiguration.class.php');

  1. Use setWebDir() method to change the public area from web to public_html/paginabeagleit

    • vi ../sfproject/beagleit/config/ProjectConfiguration.class.php

  2. Inside the class ProjectConfiguration and its function setup(), add the following:

    • $this->setWebDir($this->getRootDir() . '/../../../public_html/paginabeagleit/');

  3. Link sf directory

    • ln -s /home/nameserver/sfproject/beagleit/lib/vendor/symfony/data/web/sf/ /home/nameserver/public_html/paginabeagleit/sf

Maybe I have to do an additional procedure to make the project work correctly...

Note: I checked the page code with firebug and note that Apostrophe is not creating the files "data-asset group".

jaiden...@gmail.com

unread,
Apr 5, 2013, 3:53:25 PM4/5/13
to apostr...@googlegroups.com
Good morning,

I worked very hard on the my project with "Apostrophe", and this is working fine, however I am not sure.  I used the following procedure:

  • I had to use FTP to upload all the resources from the plugins published on my project (NetBeans) from the production environment, because the assets from the plugins on the server that I published were not recognized.
  • Uncheck "minify" (Combines css and js files) in the file "app.yml", as the merged files were not recognized. However the individual files, css and js were recognized.
  • I had to manually copy and rename individual files (css) in the folder "/ uploads / asset-cache /", because when I run the project does not automatically create these files in this folder.

I know that the above procedure is not the right one, but the project is run, however I would like to set up a project with "Apostrophe" properly. Anyone know where I could be wrong?

I think the problem is somewhere route configuration, however I am not sure if my hypothesis is correct.

I look forward to your comments ...
Reply all
Reply to author
Forward
0 new messages