Giter VIP home page Giter VIP logo

fabric-scripts's Issues

Add a linter

As mentioned by @dcarley in #166:

Might be worth adding a linter and TravisCI to this project. Not as part of this PR, but later..

Issue running campaigns.deploy_emergency_banner task with unicode input

When running the emergency publishing task, it asks that you enter some information:

Heading
Short description
More info link

If one of those inputs is a unicode character, such as including a quote ' mark, then it fails with the following error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 10: ordinal not in range(128)

Calling cdn.purge actually calls cache.purge

$ fab production cdn.purge:/foo
[cache-1.router] Executing task 'cdn.purge'
[cache-1.router] run: curl -s -I -X PURGE http://localhost:7999/foo | grep '200 Purged'
[cache-1.router] out: HTTP/1.1 200 Purged
[cache-1.router] out:
[cache-1.router] out:

[cache-2.router] Executing task 'cdn.purge'
[cache-2.router] run: curl -s -I -X PURGE http://localhost:7999/foo | grep '200 Purged'
[cache-2.router] out: HTTP/1.1 200 Purged
[cache-2.router] out:
[cache-2.router] out:

[cache-3.router] Executing task 'cdn.purge'
[cache-3.router] run: curl -s -I -X PURGE http://localhost:7999/foo | grep '200 Purged'
[cache-3.router] out: HTTP/1.1 200 Purged
[cache-3.router] out:
[cache-3.router] out:


Done.
Disconnecting from jumpbox.production.alphagov.co.uk... done.
Disconnecting from cache-3.router... done.
Disconnecting from cache-2.router... done.
Disconnecting from cache-1.router... done.

I would expect cdn.purge to purge the CDN, i.e. Fastly. Instead, possibly because cdn.py imports from the cache module, cdn.purge purges our own Varnish instances.

Problem running Fabric from within a virtualenv

Can anyone let me know if they've seen this before or can reproduce it? I'm banging my head against a wall.

  • OS X 10.10.5
  • Homebrew
brew info python # python: stable 2.7.11, HEAD
pip --version # pip 8.0.2 from /opt/boxen/homebrew/lib/python2.7/site-packages (python 2.7)
virtualenv --version # 14.0.1

Inside a new virtualenv:

which python # /Users/alexmuller/.virtualenvs/fabric-scripts/bin/python
which pip # /Users/alexmuller/.virtualenvs/fabric-scripts/bin/pip
pip install -r requirements_for_tests.txt
which fab # /Users/alexmuller/.virtualenvs/fabric-scripts/bin/fab
fab -l # works fine!
fab integration
# Illegal instruction: 4

Using Fabric without a virtualenv is fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.