Hi.
I have a problem and I cant find error in my code. My circleci I don't want to make a connection with my vps.It
s error message:
#!/bin/bash -eo pipefail
ssh -T root:51.91.252.150 < bin/deploy/pre_deploy.sh
ssh: Could not resolve hostname :*********: Name or service not known
Exited with code exit status 255
CircleCI received exit code 255
my code:
> version: 2
> jobs:
> build:
> working_directory: ~/micropost
> docker:
> - image: circleci/php:7.2.0-apache-stretch-node-browsers
> environment:
> APP_ENV: test
> DATABASE_URL: mysql://root:root@127.0.0.1/micro-post
> MAILER_FROM: micro@micropost.com
> MAILER_URL: null://localhost
> - image: circleci/mysql:5.7
> environment:
> MYSQL_ROOT_PASSWORD: 'root'
> MYSQL_DATABASE: micro-post
> steps:
> - checkout
> - run:
> name: Install PHP MySQL
> command: sudo docker-php-ext-install pdo_mysql
> - run:
> name: Wait for MySQL
> command: dockerize -wait tcp://127.0.0.1:3306 -timeout 120s
> - run:
> name: Composer
> command: sudo composer self-update
> - run:
> name: Composer install
> command: composer install -n --prefer-dist
> - run:
> name: Run migrations
> command: php bin/console doctrine:schema:update --force
> deploy:
> working_directory: ~/micropost
> docker:
> - image: circleci/php:7.2.0-apache-stretch-node-browsers
> steps:
> - add_ssh_keys:
> fingerprints:
> - "b6:76:a7:ac:1d:19:f6:e9:59:a4:5f:4d:ed:91:34:dd"
> - checkout
> - run:
> name: Composer install
> command: composer install -n --prefer-dist
> - run:
> name: Clear cache
> command: php bin/console cache:clear --env=prod --no-interaction
> - run:
> name: Add droplet
> command: ssh-keyscan -H 51.91.252.150 >> ~/.ssh/know_hosts
> - run:
> name: Pre-deploy
> command: ssh -T root:51.91.252.150 < bin/deploy/pre_deploy.sh
> - run:
> name: Deploy code
> command: rsync -vzcrSLhp --exclude '.env' --delete ~/micropost/ root@51.91.252.150:/var/www/micropost_current
> - run:
> name: Post deploy
> command: ssh -T root:51.91.252.150 < bin/deploy/deploy.sh
> workflows:
> version: 2
> build-and-deploy:
> jobs:
> - build
> - deploy:
> requires:
> - build
> filters:
> branches:
> only: master