|Hamlet templates doesn't update||Дмитрий Долгов||17.06.13 6:17|
and tried modify templates/homepage.hamlet . When I restarted development service, I didn't see my changes) When I have deployed this app into Heroku, there is my changes well. I don't know reason of this - can anybody help me?
|Re: [Yesod] Hamlet templates doesn't update||Greg Weber||17.06.13 6:32|
So we are assuming you are using `yesod --dev devel`. You should be able to manually run `cabal-dev build` to see your changes. Also, if you touch a file that uses templates/homepage.hamlet the changes should show up. Do those work?
|Re: [Yesod] Hamlet templates doesn't update||Дмитрий Долгов||18.06.13 1:52|
I have ran 'cabal-dev build' (also 'yesod build --dev', but i think, this commands are equals) - my application was rebuilt, but it still didn't contains my template changes. Also, I have changed page title in getHomeR handler, rebuild app, and nothing! And yes, I use 'yesod --dev devel' to run development server.
понедельник, 17 июня 2013 г., 20:32:57 UTC+7 пользователь Greg Weber написал:
|Re: [Yesod] Hamlet templates doesn't update||Greg Weber||18.06.13 4:08|
This is very strange. Can you generate a new site with `yesod init` and not change anything at all, but just try to modify one of the templates and verify that you still don't see any changes?
What version of ghc are you using?
|Re: [Yesod] Hamlet templates doesn't update||Дмитрий Долгов||18.06.13 5:22|
I found solution, but it's surprisingly for me)I have generated new app with postgresql:
and run dev server:
yesod --dev devel
Yesod devel server. Press ENTER to quit
Warning: The package list for 'hackage.haskell.org' is 16 days old.
Run 'cabal update' to get the latest list of available packages.
Forcing recompile for ./Handler/Home.hs because of templates/homepage.hamlet
Forcing recompile for ./Handler/Home.hs because of templates/homepage.julius
Forcing recompile for ./Handler/Home.hs because of templates/homepage.lucius
Rebuilding application... (using cabal-dev)
Starting development server...
Starting devel application
Devel application launched: http://localhost:3000
And I don't see any changes. After 'cabal-dev build' nothing has changed. But when i run
and start dev server, template modifications were i place!) This is correct behavior of yesod?
вторник, 18 июня 2013 г., 18:08:15 UTC+7 пользователь Greg Weber написал:
|Re: [Yesod] Hamlet templates doesn't update||Greg Weber||18.06.13 21:28|
The instruction to run cabal-dev install is given in the output of yesod init.
But still, this should be easy for yesod --dev devel to detect so I created an issue for it: https://github.com/yesodweb/yesod/issues/565
|Re: [Yesod] Hamlet templates doesn't update||Дмитрий Долгов||18.06.13 22:22|
Hm...but when I ran 'yesod --dev devel' cabal-dev directory already exists, because I created app as:
Or am I missing something?
среда, 19 июня 2013 г., 11:28:46 UTC+7 пользователь Greg Weber написал:
|Re: [Yesod] Hamlet templates doesn't update||Greg Weber||19.06.13 7:28|
Those commands should work (yesod --dev devel would come after). Can you update the github issue with the exact commands that create the issue?