https://github.com/vmunier/play-scalajs.g8 템플릿을 사용해 web UI 를 개발해 본다. 개발에 대한 설명은 https://wefree.tistory.com/324 블로그에서 확인할 수 있다.
https://wefree-scalajs.fly.dev/
- Require Java 17
- playframework-3.x
- laminar-16.0.0
- frontroute-0.18.x
- bootstrap-5.3
개인 Local PC 에서 Dockerfile 로 이미지를 만들 수 있는 준비되어야 fly
command 로 배포할 수 있다.
-
Local PC 에서 sbt build
java-17
과sbt
가 설치되어 있어야 한다.sbt server/clean server/stage # docker build --tag demo . # docker run --rm -p 9000:8080 demo
-
fly
command 로 배포 참고
fly deploy
를 실행하면 Local 에서 Dockerfile 로 이미지를 생성 후 배포한다.fly auth login fly launch fly deploy
-
(optional) Deploying a full stack Scala application on fly.io 을 참고해 github actions 로 관리할 수 있다.
-
참고 문서