Comments (4)
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.
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.
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.
+1 thanks for your help :) I'll add a sample local deploy script as well.
from pyladies.
Related Issues (20)
- PyLadies Website 2.0 Migration HOT 4
- Update the instructions on how to build the pyladies website locally HOT 1
- Setup Netlify for PyLadies website HOT 7
- CircleCI Deploy Broken: CircleCI Unable to Find Identity File HOT 1
- PyLadies website: Clean up the deploy setup HOT 1
- PyLadies website: Clean up the "Forum" page HOT 4
- Request to Join Project Tech & Infra: ks--ks HOT 4
- dublin.pyladies.com returns a Heroku Application error page HOT 1
- Adjust social media, netlify badge in footer & add social page to website HOT 4
- Add HTTPS cert on Netlify HOT 1
- Fix broken link in the "Announcement for Registering PyLadies Members" post on the website. HOT 2
- Moving old website repos from monolith HOT 1
- Request to Join Project Tech & Infra: <rutujak24> HOT 1
- Replace the "sponsor" email address
- Get Swag Button redirects to https://pyladies.spreadshirt.com/ which is currently unavailable HOT 2
- Blog URL is not working HOT 3
- Request to Join Project Tech & Infra: maud-lv HOT 1
- Create a TXT record for Pyladies Tokyo HOT 2
- Org maintenance HOT 9
- Hopefully the final attempt to migrate the PyLadies static website HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyladies.