小编tal*_*oaj的帖子

Heroku DB部署

我正在尝试第一次Heroku部署,遇到了麻烦

heroku pg:backups:restore "https://s3.us-east-2.amazonaws.com/myusername/POSTGRESQL.dump" 
                          DATABASE_URL --app MyAppName
Run Code Online (Sandbox Code Playgroud)

我收到错误

 !    An error occurred and the backup did not finish.
 !
 !    pg_restore: [archiver] did not find magic string in file header
 !    pg_restore finished with errors
 !    waiting for download to complete
 !    download finished with errors
 !    please check the source URL and ensure it is publicly accessible
 !
 !    Run heroku pg:backups:info r006 for more details.
Run Code Online (Sandbox Code Playgroud)

有时错误是:

Starting restore of https://s3.us-east-2.amazonaws.com/talXXXXXXXX to postgresql-XXXXXXXXX... done

Use Ctrl-C at any time …
Run Code Online (Sandbox Code Playgroud)

heroku

5
推荐指数
2
解决办法
471
查看次数

如何使用 Github 操作让 Selenium 测试在 python 中运行?

我无法在 github 操作中运行我的 python Selenium。

过去一年我一直在使用 Circle CI,但最近开始迁移到 github 操作。

为了让 Circle CI 在 Chrome 浏览器中运行 selenium,我的 config.yml 中有以下几行:

docker:
    # includes chrome browser for selenium testing
  - image: circleci/python:3.7.4-browsers
Run Code Online (Sandbox Code Playgroud)

并且似乎不需要安装 chromedriver。

我在我的 githubs action .yml 文件中使用以下内容:

jobs:
  build:
    runs-on: ubuntu-latest
    services:
      selenium:
        image: selenium/standalone-chrome
    steps:
    - uses: actions/checkout@v1
    - name: Set up Python 3.7
      uses: actions/setup-python@v1
      with:
        python-version: 3.7
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install pipenv
        pipenv install
    - name: Prepare …
Run Code Online (Sandbox Code Playgroud)

python selenium selenium-chromedriver github-actions

5
推荐指数
2
解决办法
2108
查看次数