Skip to content

Commit

Permalink
Rifo again
Browse files Browse the repository at this point in the history
  • Loading branch information
TonioGela committed Oct 22, 2023
1 parent 43dc6ed commit b041a12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ jobs:
run: sbt server/Docker/publishLocal

- name: Fly deploy
run: flyctl deploy --local-only --yes
run: flyctl deploy --vm-cpu-kind "shared" --vm-cpus "1" --local-only --yes
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
2 changes: 1 addition & 1 deletion client/src/main/scala/dev/toniogela/chat/Client.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ object Client:

private val directMessage: Regex = "@(\\S+):(.+)".r

def renderEmojis: String => String = _.replaceAll(" :)", " 😄").replaceAll(" D:", " 😦")
def renderEmojis: String => String = _.replaceAll(" :\\)", " 😄").replaceAll(" D:", " 😦")

private def processOutgoing(
server: Server,
Expand Down
3 changes: 2 additions & 1 deletion project/Utils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.typesafe.sbt.packager.docker.DockerPlugin
import com.typesafe.sbt.packager.docker.DockerPlugin.autoImport.*
import scala.scalanative.sbtplugin.ScalaNativePlugin
import scala.scalanative.sbtplugin.ScalaNativePlugin.autoImport.*
import _root_.java.nio.file.Files

object Utils {

Expand All @@ -28,7 +29,7 @@ object Utils {
}).settings(
Compile / nativeLink := {
val file: File = (Compile / nativeLink).value
IO.copyFile(file, new File("~/fs2-chat-client"))
IO.copyFile(file, new File(s"${sys.env("HOME")}/fs2-chat-client"))
file
}
)
Expand Down

0 comments on commit b041a12

Please sign in to comment.