1

I am publishing my Aurelia project in Azure from VS Code without problems but I don't know how to publish it in an IIS

regards

kintela
  • 1,283
  • 1
  • 14
  • 32

2 Answers2

1

1.open command prompt as administrator.

2.enter to the Aurelia project folder.

3.run au build --env prod command to build project.

4.this command will generate a dist folder under the project folder.

5.now open iis.

6.right click on the server name and select add website.

7.feel the detail like site name, port number, and the path.

note: select the dist folder as a website path.

enter image description here

8.after creating site. select site name then click on browse from the cation pane.

enter image description here

refer this article for more detail:

https://discourse.aurelia.io/t/publish-aurelia-project-with-visual-studio-2017/2944

Deploying an aurelia.cli built app

Jalpa Panchal
  • 8,251
  • 1
  • 11
  • 26
  • Thanks after execute au build --env prod I get several errors:error: Error: Path variable [contenthash] not implemented in this context: [contenthash].css – kintela Oct 22 '19 at 14:56
  • You need to downgrade webpack package to v4.2.0 . It looks like extract-text-webpack-plugin v4.0.0-beta.0 doesn't support webpack v4.4.1.You can read more about this issue [here](https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/763) github issue – Jalpa Panchal Oct 23 '19 at 03:21
  • When I execute au build --watch while I develop the project I get the wwwroot folder with he index.html and the chunks perfectly. I asume that I can point the folder of my site in IIS to this wwwroot folder generated too? – kintela Oct 23 '19 at 14:26
  • @kintela in my opinion, you need to use the build folder with iis. did you try to use wwwroot folder? – Jalpa Panchal Oct 24 '19 at 09:43
  • @kintela then you could post your solution as an answer and mark it. it will help other people whi face similar issues. – Jalpa Panchal Oct 28 '19 at 01:45
  • @kintela sorry, I can not understand what you mean? – Jalpa Panchal Oct 29 '19 at 08:24
  • I just wanted to say that I am very busy in my work and I had forgotten to answer that it already worked for me and I have already published my answer – kintela Oct 29 '19 at 14:48
0

I have execute au build --watch and I have copied and pasted the files generated in the wwwroot folder (in my case) inside the folder of my IIS web site and all works fine

Thanks

kintela
  • 1,283
  • 1
  • 14
  • 32