Git Product home page Git Product logo

Comments (4)

jdutriaux avatar jdutriaux commented on June 21, 2024

After many searches I found what I wanted in this blog post : http://swampdragon.net/blog/deploying-swampdragon/

You should really integrate this into the documentation 😉.

Edit : Maybe that post is outdated, I'm still having some issues... Reopening this ticket, sorry about that.

from swampdragon.

jdutriaux avatar jdutriaux commented on June 21, 2024

With some changes I succedeed in talking to the server.

Now I have an error :

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1332, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/swampdragon/settings_provider.py", line 14, in get
    'host': self.request.headers['Host'],
  File "/usr/local/lib/python2.7/dist-packages/tornado/httputil.py", line 209, in __getitem__
    return dict.__getitem__(self, _normalized_headers[name])
KeyError: 'Host'

from swampdragon.

jdutriaux avatar jdutriaux commented on June 21, 2024

I've made a mistake in the nginx config file >_<. Sorry again and keep the awesome work.

from swampdragon.

hagsteel avatar hagsteel commented on June 21, 2024

I might make the deployment process into a tutorial rather than a blog post.
Deployment depends a lot on the individual. Personally I like uWSGI and NGINX, however some people prefer gunicorn instead, and I don't want to give the impression that people have to use uWSGI.

I will release an update soon, which will get rid of localhost:9999/settings.js in favour of using a template tag instead, this way it won't be necessary to go through the process of creating a custom context processor for different environments as well (it will all be managed through your settings.py).

Happy to see that you solved your issue

from swampdragon.

Related Issues (20)

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.