Git Product home page Git Product logo

liara's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rys

liara's Issues

Crash when invoking liara create-config

When using liara create-config to generate a default config.yaml, it crashes because when it calls dump_yaml(), options.output is just a string with the filename, not a file object that Python can call write() on.

Stacktrace:

Traceback (most recent call last):
  File "/usr/local/bin/liara", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.7/site-packages/liara/cmdline.py", line 96, in cli
    args.func(args)
  File "/usr/local/lib/python3.7/site-packages/liara/cmdline.py", line 191, in create_config
    dump_yaml(create_default_configuration(), options.output)
  File "/usr/local/lib/python3.7/site-packages/liara/yaml.py", line 27, in dump_yaml
    return yaml.dump(data, stream, Dumper=Dumper)
  File "/usr/local/lib/python3.7/site-packages/yaml/__init__.py", line 290, in dump
    return dump_all([data], stream, Dumper=Dumper, **kwds)
  File "/usr/local/lib/python3.7/site-packages/yaml/__init__.py", line 278, in dump_all
    dumper.represent(data)
  File "/usr/local/lib/python3.7/site-packages/yaml/representer.py", line 28, in represent
    self.serialize(node)
  File "ext/_yaml.pyx", line 1350, in _yaml.CEmitter.serialize
  File "ext/_yaml.pyx", line 1525, in _yaml.output_handler

No patch to fix since I'm not sure where the right place to put the open with the right access mode is.

request undefined

Hi,

got the following error if I try to execute:

{% if request.endpoint.endswith(endpoint) %}

command line said:

jinja2.exceptions.UndefinedError: 'request' is undefined

I'm new to Liara, under Flask its working when I importing request over app.py?

Kind regards!
Sebastian

Unknown resource files cause a KeyError

Putting an unsupported resource type into the template resource directory results in an key error. Steps to reproduce:

$ liara quickstart
$ touch templates/resources/style.scss.backup
$ liara build

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.