我正在按照这指南创建管道,将我的Django项目部署到数字海洋,Ubuntu18液滴。
我做了什么,
image: python:3.7.3
pipelines:
default:
- step:
name: Build and test
caches:
- pip
script: # Modify the commands below to build your repository.
- pip install -r requirements.txt
- nosetests test/autotests --with-xunit --xunit-file=nosetests.xml --with-coverage --all-modules
- step:
name: Deploy to <myserver>
script:
- cat <script>.sh | ssh <user>@<host>
- echo "Deploy step finished"错误当我在Bitbucket上运行管道时,我得到以下错误
nosetests test/autotests --with-xunit --xunit-file=nosetests.xml --with-coverage --all-modules
<1s
+ nosetests test/autotests --with-xunit --xunit-file=nosetests.xml --with-coverage --all-modules
bash: nosetests: command not found问题
ssh <user>@<host>我知道如何替换<user> & <host><script>在cat <script>.sh<myserver>在name: Deploy to <myserver>,这是我的服务器的IP地址吗?#!/usr/bin/env bash
echo "Deploy script started"
cd <project git directory>
git pull
sh <restart project>.sh
echo "Deploy script finished execution"发布于 2020-04-15 08:46:43
ssh <user>@<host>需要让您要通过SSH连接的本地服务器上的用户是您要连接的本地服务器的域或IP地址。cat <script>.sh替换这个shell脚本,您已经将它写到Bitbucket云存储库中了。name: Deploy to <myserver>替换可以保存名称文本,而不管写在上面的是什么https://stackoverflow.com/questions/60790189
复制相似问题