Jump to content


Photo

Save files assets different server

server files assets

  • Please log in to reply
2 replies to this topic

#1 recyclerobot

recyclerobot

    Newbie

  • Members
  • Pip
  • 9 posts
  • 5

Posted 10 June 2012 - 02:35 PM

Hi, I'm currently trying to setup a multi server setup here and I was wondering if anybody has any experience in saving the /site/assets/files to a different server,
currently I have a front-end templates server, a backend mysql server and a fileserver setup, I'm trying to implement PW into this flow, anybody has done this before?

Kind regards!

#2 ryan

ryan

    Hero Member

  • Administrators
  • 5,773 posts
  • 3122

  • LocationAtlanta, GA

Posted 11 June 2012 - 02:08 PM

So long as the servers can share a common file system (or give that appearance), you should be able to set this up. For instance, your /site/assets/ could be a symlink to a dir on another server. But PW needs to be able to scan this directory for files, open files that are in it, and place new files into it when it needs to. PW uses PHP functions like move_uploaded_file(), copy(), rename(), getimagesize() and others to act upon the files in /site/assets/ as needed, which is why they must be accessible as if they were local.

#3 recyclerobot

recyclerobot

    Newbie

  • Members
  • Pip
  • 9 posts
  • 5

Posted 18 June 2012 - 08:43 AM

I'm thinking of using SSHFS (http://fuse.sourceforge.net/sshfs.html) to mount a remote NFS disk and mount it on my frontend servers so they all use the same shared filesserver, I'll let you know how things go :)





Also tagged with one or more of these keywords: server, files, assets

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users