问题描述
我尝试从我的 travis 构建服务器调用我的远程服务器 (DROPLET-DigitalOcean) 上的命令, 我应该如何正确连接到服务器并运行命令 docker-compose up?
language: csharp
sudo: required
mono: none
dotnet: 5.0.202
branches:
only:
- master
before_script:
- chmod -R a+x scripts
script:
- cd src/Application.Api
- dotnet restore
- dotnet build
after_success:
- echo Executing after success scripts on branch $TraviS_BRANCH
- echo Publishing application
- echo Loging to server...
- sudo apt-get install sshpass
- sshpass -p $ApplicationIPPassword ssh root@ApplicationIPAddress
- echo Logged to server
- ls //**here i want to see files on server not in my travis server**
- docker-compose up
- cd /etc/Nginx/sites-available
- ls
notifications:
email:
on_success: never
on_failure: always
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)