Code Monkey home page Code Monkey logo

build's Introduction

Deployment steps

Setup.

Assuming all your code is checked out into the same repository. This repository should be at the same level as all the other repositories.

build <--This repository
core-services
municipal-services
business-service

Contents

run folder contains the scripts that are to be run from the same folder. This folder also contains projects.csv which contains the individual spring boot projects to be built. It need not be modified if the folder structure is as mentioned above under Setup. run/logs contains all the stdout and stderr out put redirected per project. run/pids contains all the pids of the linux processes that are started.

scripts contain the individual scripts that will be called repeatedly. These can also be called individually per project (or module) if all the projects are not required to be deployed.

Build

From the run folder, run

./build-all.sh

This script builds the individual projects and copied over the build jar files, per project, to artifacts folder which is at the same level as run.

Deployment on remote server.

ssh into the remote server

ssh digit

cd dev/build/run

Stop all the services on the remote server.

./shutdown-all.sh

The artifcats need to be copied over to the remote server using scp or any other compatible software.

For scp, type the following from the root of the project

scp -r artifacts digit:dev/build/artifacts

Start them all up.

./start-all.sh

Troubleshooting

  1. Look up the logs to see which service is failing.
  2. If failing due to postgres, launch a postgres shell on remote server.

sudo -u postgres psql

build's People

Contributors

prasuntranserve avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.