Code Monkey home page Code Monkey logo

cab's People

Contributors

zulko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cab's Issues

docker-compose up failing at end on mac? permissions with cab_rqworker_1?

I'm not sure if I've done anything wrong at my end, but when I simply clone repo and follow instructions running docker-compose up, the build fails right at the end? I tried running as sudo but it still faults with same error. I'm running OSX Mojave (10.14.6).

...
  Build complete.

  Tip: built files are meant to be served over an HTTP server.
  Opening index.html over file:// won't work.

Removing intermediate container d9593cafbe15
 ---> 007732ad8c04
Successfully built 007732ad8c04
Successfully tagged cab_vue:latest
WARNING: Image for service vue was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating cab_vue_1 ... 
Creating cab_redis_1 ... done
Creating cab_rqworker_1 ... error
Creating cab_vue_1      ... done
ERROR: for cab_rqworker_1  Cannot start service rqworker: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"./rqworker_reload.sh\": permission denied": unknown

ERROR: for rqworker  Cannot start service rqworker: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"./rqworker_reload.sh\": permission denied": unknown
ERROR: Encountered errors while bringing up the project.

Thank you for any help!

docker-compose up problems

Hi Zulko,

I also had problems with ssh-keyscan commands,
but after commenting them out I got npm install issue:
ERROR: Service 'vue' failed to build: The command '/bin/sh -c npm install spa-http-server -g' returned a non-zero code: 139

How to create a url entry for downloading a result csv file?

My app generated a result csv file 123.csv and I put it into the backend/app/data folder

I created a link in the result page as
http://localhost/download/123.csv

then I create this url entry in backend/website/urls.py

url(r'^api/download/<str:filename>$', views.download_file, name="download")

and defined the download_file view function in backend/app/views/init.py

def download_file(request, filename):
print("**** download_file function ..........")
response = HttpResponse(content_type='text/csv')
response['Content-Disposition'] = 'attachment; filename="export.csv"'
writer = csv.writer(response)
writer.writerow(['id', 'EmpID', 'BarID', 'Username', 'Type', 'Liability', 'Date'])
# for item in data:
# writer.writerow([item.id, item.EmpID, item.BarID, item.Username, item.Type, item.Liability, item.Date])
return response

However, when I click the link url
http://localhost/download/123.csv

it reports
Cannot GET /download/123.csv
and it did not trigger my download_file view function
it seems did not map the url successfully to the view function. download_file()

How should I set the url entry to map the
http://localhost/download/123.csv link to the download_file() function?

Thanks

George

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.