valet-windows: cannot load any resources in laravel
@cretueusebiu im using laravel and i cannot load any resources like css,images,js must be problem with nginx path. Here’s nginx error log.
2017/01/14 15:36:13 [error] 12156#14272: *58 "C:\Laravel\valet\billing/public/css/app.css/index.html" is not found (3: The system cannot find the path specified), client: 127.0.0.1, server: , request: "GET /css/app.css HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "billing.dev", referrer: "http://billing.dev/"
2017/01/14 15:36:13 [error] 12156#14272: *59 "C:\Laravel\valet\billing/public/img/googlelogo.png/index.html" is not found (3: The system cannot find the path specified), client: 127.0.0.1, server: , request: "GET /img/googlelogo.png HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "billing.dev", referrer: "http://billing.dev/"
2017/01/14 15:36:13 [error] 12156#14272: *59 "C:\Laravel\valet\billing/public/js/app.js/index.html" is not found (3: The system cannot find the path specified), client: 127.0.0.1, server: , request: "GET /js/app.js HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "billing.dev", referrer: "http://billing.dev/"
2017/01/14 15:36:14 [error] 12156#14272: *59 "C:\Laravel\valet\billing/public/js/app.js/index.html" is not found (3: The system cannot find the path specified), client: 127.0.0.1, server: , request: "GET /js/app.js HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "billing.dev", referrer: "http://billing.dev/"
here’s my page source
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<script>
var Laravel = {
csrfToken: "luwVZLJuKka4JiPbVhUagaRi2Or5uia0tQKgP6j3",
stripeKey: "pk_test_L9bWUWBBLdf19cbMYnVlwYLs"
};
</script>
<style href="/css/app.css"></style>
<link rel="stylesheet" href="/css/app.css">
</head>
<body>
<div id="app">
<img src="img/googlelogo.png">
<checkout-form></checkout-form>
</div>
<script src="https://checkout.stripe.com/checkout.js"></script>
<script src="http://billing.dev/js/app.js"></script>
</body>
</html>
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (5 by maintainers)
Commits related to this issue
- Merge pull request #5 from jerguslejko/master Fix missing bracket — committed to cretueusebiu/valet-windows by taylorotwell 8 years ago
- Fix: `share` command ngrok options After lots of testing as a result of #5, it became apparent that if the already implemented optional `site` argument is omitted but options are specified for ngrok:... — committed to damsfx/valet-windows by yCodeTech a year ago
@cretueusebiu that’s doesn’t work still same result
valet-windows latest release(2.0.7) fixed this issue, thanks @cretueusebiu for this cool package.
I think problem is created by this part of valet.conf
alias / refer to C:\
so that valet directory must have to be in C:\
If you secured the site use
valet unsecure your-domain-name
, thenvalet secure your-domain-name
.