GithubHelp home page GithubHelp logo

Comments (4)

econchick avatar econchick commented on July 23, 2024

I'm not sure what you mean by remove compiled files.

First, you mention wsgi.py, which is actually made me notice that wsgi is not at all used, and should/will be removed from the directory. So, I will do that. It's an artifact of our former Mezzanine site.

Second - there are two types of directories. One's that have the underscore preceding their name, and ones that do not.

Mynt ignores, with the exception of _posts, _assets, and _templates, all those files when you run $ mynt -f gen _site. Mynt takes all the normal, non-understored files and compiles them to _site/. So, we do need the compiled files - they are the site. The -f flag tells mynt that there is already a _site file and to rewrite everything in that file. For instance, if someone redoes the CSS, it will rewrite everything. If someone just does one post, it will just change that post (and the feed.xml).

When we deploy, I run $ mynt gen -f _site && rsync -rupaz _site/ <username>@pyladies.com:www - no wsgi, just static.

Does that answer your question/confusion a bit?

from pyladies.

justinabrahms avatar justinabrahms commented on July 23, 2024

Not really.

The issue is that people are editing _site/ and it took me longer than it should to understand the difference. What I'm asking is for you to remove _site/ from the repo (and add it to gitignore). Your deploy should be exactly the same. You create a _site/ directory and push it out to the server. If someone wants a _site/ directory locally, they can just run the compilation process.

Does that make sense?

from pyladies.

justinabrahms avatar justinabrahms commented on July 23, 2024

As the pull request above mentions, this is the implementation of my suggestion. Your deploy procedure should be identical and nothing should change, but now there's less confusion because there aren't duplicates of the javascript.

😄

from pyladies.

econchick avatar econchick commented on July 23, 2024

+1 thanks for your help :) I'll add a sample local deploy script as well.

from pyladies.

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.