How to Deploy in Development Server
Instructions
Login Bitbucket and copy repository address
Replace git clone URL by copied one
Related articles
UI:
Clone git repository of deployed code.
git clone https://{{your Bitbucket user name}}@bitbucket.org/expertsolver/commeng-dev-ui-release.git
git pull origin master
git pull origin master
git status [optional (use to see the changes)]
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.
git clone https://{{your Bitbucket user name}}@bitbucket.org/expertsolver/commeng-dev-api-release.git
git pull origin master
git status [optional (use to see the changes)]
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!