How to Deploy in Development Server

Instructions

  1. Login Bitbucket and copy repository address

  2. Replace git clone URL by copied one

 

UI:

  •   Clone git repository of deployed code.

  • Copy ‘appconfig.json’ file and save it to another safe location. [for first time only]

  • Build code using ‘ng build --prod’(from PowerShell or VSCode Command line).

    • In case of memory full error use ‘node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build --prod’ command.

  • Copy built code and paste into deployed code folder (dist folder).

  • Replace ‘appconfig.json’ by copied one.

  • Push git repository

    • git add .

    • git commit –am “your commit message”

    • git push origin master

  • Follow the execution until success message

  • Go Live and Enjoy!

API:

  • Clone git repository of deployed code.

  • Build project

    • Click right button on Web.Host project and select publish.

    • For first time deployment you will see a new window of publish.

    • Select new.

    • From new popup select folder.

    • Click on Publish

    • Wait for publish success message.

  • Navigate to …Web.Host\bin\Debug\netcoreapp2.1\publish\ folder

  • Copy built code and paste into deployed code folder

  • Push git repository

    • git add .

    • git commit –am “your message”

    • git push origin master

  • Follow the execution until success message

  • Enjoy!