PATH public folder CSS/JS/JPG

Post Reply
SelMaK
Posts: 2
Joined: Thu Oct 22, 2020 2:51 pm

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)
User avatar
myVesta
Site Admin
Posts: 932
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

: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)
SelMaK
Posts: 2
Joined: Thu Oct 22, 2020 2:51 pm

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 :)
Post Reply