-
Notifications
You must be signed in to change notification settings - Fork 28
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
how to run this template? #2
Comments
exec python -m SimpleHTTPServer 4000 i found this file "serve.sh" in another place, it works! i am wondering is this just for test or learn, not a robust http server ? if i want to scale this template in a production server, can you give some suggestion? |
my real purpose is to use scalajs-react with lift-web, still i can't find the right way |
there is no inbuilt server for this project , you must bring your own. Sorry i don't have any experience with lift-web |
can i just precompile scalajs-react into something under webapp, and not use the router things which renders the components directly.If all in the webapp, then i can use other framework in the server side.Thank you very much! 发自我的 iPhone
|
if you want to serve html directly from server then take a look at server side rendering of react , unfortunately i have no experience with server side stuff, may be you can ask here https://github.com/japgolly/scalajs-react |
I used https://github.com/lihaoyi/workbench to run the template. Add the following to plugins.sbt
Add the following to build.sbt
When you run sbt a local web server will also start. Go to http://localhost:12345/index.html and the app should appear. |
"The requested resource could not be found." refreshBrowsers <<= refreshBrowsers.triggeredBy(fastOptJS in Compile) |
@extirpate I made a pull request using workbench based on what you were saying: #7 |
i tried
sbt
container:start Or run or runMain or jetty:start
none of them works.
sbt
run
show me these errors
The text was updated successfully, but these errors were encountered: