Comments (2)
Hi Steve!
Have you tried configuring root
?
You can use VITE_RUBY_ROOT
to set the directory, and then adjust other paths such as sourceCodeDir
and publicDir
to match your setup.
from vite_ruby.
Hey @ElMassimo - thanks for such a fast response!
I haven't had too much joy configuring the root
- that was my first port of call when coming to this, but I've been hitting an error I haven't been able to get past:
No such file or directory - folder_name (Errno::ENOENT)
I've no idea why, that seemed like the perfect solution. Permissions etc OK for the directory 🤷
Seems to originate in ViteRuby::IO
with this code: Open3.popen3(*cmd, **opts)
. The option to change the directory is set: {:chdir=>#<Pathname:folder_name>}
, but it appears I'm already in the directory at that point:
> system 'pwd'
rails_root/applications_app
=> true
Perhaps I'm looking at a bit of an XY problem and if I overcome that everything'll fall into place?
from vite_ruby.
Related Issues (20)
- Automatic refresh for SSR server HOT 1
- Some assets are randomly missing after deployment with Capistrano HOT 1
- yarn 3 Missing Executable
- How do I turn off the Inter-roman and Inter-italic fonts?
- Update rack-proxy to at least 0.7.5 HOT 2
- resolve_entries is slow when using vite_javascript_tag for very large and complex tsx react/relay files HOT 2
- `An import map is added after module script load was triggered` in console. HOT 4
- Fail to load styles from js files when it conflicts with stylesheet tag
- Support new default manifest location in Vite v5 HOT 9
- plugin_legacy is not working as expected
- Allow `.` as a valid option for `sourceCodeDir`
- 'conflicting chdir during another chdir block' calling vite_asset_path
- Can't find SVG file in manifest after upgrade to 3.5.0 HOT 2
- "The CJS build of Vite's Node API is deprecated." HOT 4
- Disabling cssCodeSplit breaks CSS file location used by tag helper in Rails HOT 1
- vite-rails live demo on Heroku is broken HOT 2
- clean command not detecting versions properly HOT 1
- Calling `bin/vite ssr` just exits with no errors
- vite_hanami in hanami 2.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vite_ruby.