Git Product home page Git Product logo

weber-backend's People

Contributors

boazin avatar r-darwish avatar vmalloc avatar yanivoliver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

weber-backend's Issues

default port bindings for docker-py 1.0.0

/o/weber-backend git:master # ❯❯❯ python manage.py docker start
Traceback (most recent call last):
  File "manage.py", line 190, in <module>
    cli()
  File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/click/core.py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/click/core.py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/click/core.py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/click/core.py", line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/click/core.py", line 416, in invoke
    return callback(*args, **kwargs)
  File "manage.py", line 165, in start
    _run_docker_start(port)
  File "manage.py", line 173, in _run_docker_start
    binds={os.path.join(persistent_dir, "db"):'/var/lib/postgresql/data'})
  File "/opt/weber-backend/_lib/docker.py", line 129, in start_docker_container
    docker.start(name, binds=binds, port_bindings=port_bindings, links=links)
  File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/docker/client.py", line 857, in start
    extra_hosts=extra_hosts, read_only=read_only, pid_mode=pid_mode
  File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/docker/utils/utils.py", line 407, in create_host_config
    port_bindings
  File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/docker/utils/utils.py", line 160, in convert_port_bindings
    for k, v in six.iteritems(port_bindings):
  File "/opt/weber-backend/.env/local/lib/python2.7/site-packages/six.py", line 576, in iteritems
    return iter(d.iteritems(**kw))
AttributeError: 'tuple' object has no attribute 'iteritems'

The offending default port tuple is in _lib/docker.py:

113 def start_docker_container(image, name, binds, port_bindings=(), links=()):

This is with docker-py 1.0.0

unrecoverable error if vagrant fails

If a python manage.py deploy --dest vagrant fails, subsequent calls will not succeed

The error:

The box 'chef/centos-7.0' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:

URL: ["https://atlas.hashicorp.com/chef/centos-7.0"]
Error: The requested URL returned error: 404 Not Found

Only vagrant destroy solves the problem

adding a package included in manage.py

I added a package (apscheduler) I'm importing in manage.py
added it to app.txt under deps,

Still running make testserver gets me:
ImportError: No module named apscheduler.scheduler

There are other packages used in manage.py, and I know when running make testserver on the first time, pip is running and installing. Why isn't it happening on the second time? Any bootstrap code I'm missing?

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.