Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 1.58 KB

README.md

File metadata and controls

50 lines (41 loc) · 1.58 KB

Tool for building and deploying Angular web application on remote server

Requirements

  • access over ssh to remote server hosting web app
  • web app already served using nginx(https://nginx.org/en/docs/)
  • code of the web app stored in Github repository

Instructions

If you don't have curl installed, run
sudo apt install curl

Download installation script using curl
curl https://raw.githubusercontent.com/michalakadam/angular-build-deploy-tool/master/install.sh -o ./install_angular_build_deploy_tool.sh

Make the installation script executable by running
chmod u+x ./install_angular_build_deploy_tool.sh

Run the installation script by typing
./install_angular_build_deploy_tool.sh

Fill all the required information when prompted by the installation script.
After successful installation, tool is ready.
Now everytime you want to deploy commited and pushed changes to the remote server type (in source code directory)
./deploy.sh
If everything goes well, you can see your local changes in the deployed webapp.

deploy.sh flags

-nt, --no-tests
      skip unit tests execution

Further reading

Check out my article on hosting Angular web app on remote server

Do you have any problems with running this program?
Do you see any way this project can be improved?
Don't hestitate to write an email to [email protected]