Page 1 of 1

PATH public folder CSS/JS/JPG

Posted: Thu Oct 22, 2020 4:15 pm
by SelMaK
Hello :)

VestaCP user, I just switched to myVesta (Debian 10).

I created my domain with a pointing to my public folder. The redirection only goes well, my source links CSS / JS / JPG do not take the redirection into account.

My structure is as follows (MVC type):

Code: Select all

...
public/
|_ styles
      |_mystyle
           |_assets
                |_compass
                |_img
                |_js
...
...
HTML

With VestaCP it works like this:

Code: Select all

<link rel="stylesheet" href="/styles/mystyle/assets/compass/stylesheets/layout.css?d={{  now | date('Yi') }}" type="text/css" media="screen">
With myVesta, I have to specify the public folder in order to take into account the CSS (same with the images and the JS)

Code: Select all

<link rel="stylesheet" href="public/styles/mystyle/assets/compass/stylesheets/layout.css?d={{  now | date('Yi') }}" type="text/css" media="screen">
I will be able to remedy this but it requires reviewing all the development front.

What update was there on myVesta?

Thank you :).

(sorry for my english)

Re: PATH public folder CSS/JS/JPG

Posted: Thu Oct 22, 2020 7:15 pm
by myVesta
:arrow: viewtopic.php?f=20&t=82
hosting-public template - the same as hosting template, but docroot will be public_html/public/ instead of public_html/ (mostly used in Laravel projects)

Re: PATH public folder CSS/JS/JPG

Posted: Thu Oct 22, 2020 8:13 pm
by SelMaK
Great, thank you !

Sorry, I hadn't thought of looking in the nginx section.

It's really top myVesta, there are quite a few things I wanted in Vesta and they are there in myVesta.

Thank you for all the work done :)