Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

riot compiler not watching the right directory when started from flask #2043

Closed
drorhilman opened this issue Oct 27, 2016 · 2 comments
Closed

Comments

@drorhilman
Copy link

Help us to manage our issues by answering the following:

  1. Describe your issue:
    I am running the following command from within python flask...
if __name__ == "__main__":
    from subprocess import Popen
    Popen('riot -w --template jade ../tags tags.js', shell=True)
    app.run(debug=True, threaded=True, host='0.0.0.0')

(the relevant command) = riot -w --template jade ../tags tags.js
Now, the tags.js is compiled fine , but it watch the directory ../tags/*/.tag - and the watch do not respond to any changes in the .tag files!

  1. Can you reproduce the issue?
    This issue is related to the server not the js.
  2. browser: chrome (nor relevant...) OS: Ubuntu. node: 4.4.5, npm: 2.15.5
  3. Which version of Riot does it affect? riot-compiler: 2.3.23
  4. Bug ?
@GianlucaGuarini
Copy link
Member

moved here riot/cli#22

@drorhilman
Copy link
Author

I figured out some new behavior:
I am running the server and the riot-compiler on a linux machine, and the .tag files
are on a shared mounted disk between the linux and windows machine.
Now, when I am editing and saving the files FROM WINDOWS - then the watching is not working.
However, when I am editing the files on the LINUX machine, it work fine.

Why can't riot-compiler listen to file change when it works from windows? Is there a way to fix this behavior (and do the development on windows)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants