Closed gt7810 closed 9 years ago
What is your actual webroot?
Something looks donked there. The path to your webroot in your server should be to the public
directory within the Snipe-IT app. So the image path should look something like <your server path>/snipe-it/public/uploads/models/blah.jpg
.
webroot is /apps/ snipe-it is in a folder under /apps/ I fixed by editing the path in backend/models/view.blade and edit.blade. Is there somewhere I can set this globally?
Snipe-IT is meant to run from with the app/public
directory as the webroot. Not sure what you'll have to do to get it running as a sub-directory.
This may be helpful to you tho: http://stackoverflow.com/questions/16683046/how-to-install-laravel-4-to-a-web-host-subfolder-without-publicly-exposing-app
Thank you! Will have a go. Cheers. G
Hi @gt7810 - did you get this sorted? (I'd like to close this issue if you have)
Yes. I updated the path in the blades. Temp fix but works for now. Thanks On 23 Jan 2015 06:19, "snipe" notifications@github.com wrote:
Hi @gt7810 https://github.com/gt7810 - did you get this sorted? (I'd like to close this issue if you have)
— Reply to this email directly or view it on GitHub https://github.com/snipe/snipe-it/issues/429#issuecomment-71110975.
Hm, that's going to screw you up when you upgrade tho. What OS is your server? If your webroot is still apps
, that's going to be a problem. Should be public
within the snipe-it app directory.
Server is OS X 10.6. It is also running railo so config is a little delicate. I am thinking of moving snipe to a new server which will solve the webroot issue. On 23 Jan 2015 06:28, "snipe" notifications@github.com wrote:
Hm, that's going to screw you up when you upgrade tho. What OS is your server? If your webroot is still apps, that's going to be a problem. Should be public within the snipe-it app directory.
— Reply to this email directly or view it on GitHub https://github.com/snipe/snipe-it/issues/429#issuecomment-71112331.
Ahh, yeah, that's a bit sticky. I guess the temp fix will work until you move it, but remember to change that path when you upgrade on the OS X server or you'll run into the same problem again.
When I upload an image file to an asset the path is set to: /uploads/models/pYNmoN2mvZUv8GnBK0AuVjmPy.jpg the real path is: /snipe-it/uploads/models/pYNmoN2mvZUv8GnBK0AuVjmPy.jpg I have installed the application in a directory that in a layer down from webroot.
This means the image path is broken. Any ideas on how to fix this?
Thanks George