mikhailshilkov / tictactoe

Tic-Tac-Toe with F#, Azure Functions, HATEOAS and Property-Based Tests
MIT License
18 stars 3 forks source link

How to publish the functions #2

Closed forki closed 6 years ago

forki commented 6 years ago

I tried to convert a function from function.json style to https://github.com/mikhailshilkov/tictactoe/blob/master/TicTacToe.Functions/Functions.fs#L53, but after CLI push it doesn't show anymore in the portal!? Any ideas?

mikhailshilkov commented 6 years ago

Are you running publish command from root folder with fsproj or from publish folder? I've seen the former "succeed" but with 0 functions published.

forki commented 6 years ago

I'm copying everything into a publish folder and call cli from there.

mikhailshilkov commented 6 years ago

Do you see function.json in function subfolders in publish folder? Do you see the same in Kudu after publishing?

forki commented 6 years ago

Thank you. looking into generated function.json was indeed helpful. It's using a different path. image

It looks like the path is actually wrong when you use dotnet publish. Anyway I changed my deploy script to massage the function.json accordingly and it's working now. Many thanks.

mikhailshilkov commented 6 years ago

The path looks ok to me, it resembles the structure that I get from dotnet publish (bin on the same level as function folders).

forki commented 6 years ago

yes structure just changed. I'm trying to update my script accordingly. thanks

forki commented 6 years ago

functionapp

do you run publish from that folder? It doesn't show anything in portal for me