March 2019
Intermediate to advanced
350 pages
7h 28m
English
Now that you have configured the CircleCI access to your droplet, you need to add a config file to your project to specify the jobs you want to execute for the deployment process. This process is shown in the following steps:
version: 2 jobs: build: branches: only: - master working_directory: ~/tmp docker: - image: circleci/node:10 steps: - checkout - run: npm install - run: npm run lint - run: npm test - run: ssh -o StrictHostKeyChecking=no $DROPLET_USER@$DROPLET_IP 'cd production; git checkout master; git pull; npm install; npm run start:production;'
Read now
Unlock full access