Comments (21)
Absolutely, you can see a couple of people already running Cryogen on GitHub pages here and here. If I recall correctly you simply have to make a repository and upload the content there as seen here.
from cryogen.
Hi Dimitri, I was trying to mean how is the workflow to follow for
deploying to github pages. I asked that because cryogen remove the blog
directory any time you make changes so your .git folder also is removed
... My question is more related with publishing in following occasions, not
the first one. Anyone is doing that? Is using submodules technique? HTML
redirection?
Thanks in advance
El 13/12/2014 15:42, "Dmitri Sotnikov" [email protected] escribió:
Absolutely, you can see a couple of people already running Cryogen on
GitHub pages here http://dl1ely.github.io/ and here
http://jonase.github.io/nil-recur/. If I recall correctly you simply
have to make a repository and upload the content there as seen here
https://github.com/dl1ely/dl1ely.github.com.—
Reply to this email directly or view it on GitHub
#36 (comment).
from cryogen.
There's a flag in the config now that allows files to be excluded when the public folder is regenerated, you can see the original pr for it here. It sounds like what you're looking for:
:keep-files [".git"]
from cryogen.
Yeah, that seems to solve it!
El 13/12/2014 21:28, "Dmitri Sotnikov" [email protected] escribió:
There's a flag in the config now that allows files to be excluded when the
public folder is regenerated, you can see the original pr
#28 for it here. It sounds like
what you're looking for:`:keep-files [".git"]
—
Reply to this email directly or view it on GitHub
#36 (comment).
from cryogen.
excellent
from cryogen.
Because it wasn't so easy :) I left here fully instructions
http://tangrammer.github.io/posts/02-12-2014-cryogen-and-github.html
Thanks in advance!
from cryogen.
PS: fixed url http://tangrammer.github.io/posts/02-12-2014-cryogen-and-github.html
from cryogen.
I think a future improvement would be to create a documentation site that documents these kinds of instructions.
from cryogen.
@tangrammer I am answering a bit late, but :keep-files
was added for that exact reason: Deploying to github pages without having to copy over the generated files to a separate git repo. But i see you selected a different approach in your blog post. There seem to be many ways 😄
from cryogen.
@dl1ely Thanks!, could you specify the exact flow to keep your blog in github and your webapp working?
I'll try to get it working with :keep-files but I couldn't ...
from cryogen.
Hi,
for me it felt straightforward. I let Cryogen create the static files, then i used git init
in resources/public
and added all files and committed them. Then i connected that repo with the github-repo for dl1ely.github.io (using git add remote …
) and pushed to remote. Now the public
folder was online via github.io. Before recreating the files in resources/public
, i added :keep-files ['.git']
to config.edn
to protect the git metadata for the resources
directory (But you can to this step at first, if you wish). Then i added a post and let cryogen recreate the static files. .git
will not get deleted, so git status
only shows the differences between the new created files and the previously committed version, despite that ALL files have been recreated. I commit the changed and new files and push to the remote repo. New/Changed files are online.
So, instead of copying over generated files to another directory that is versioned by git, i directly use the resources
directory of cryogen and keep the `.git' directory there.
from cryogen.
@dl1ely But in this case, how do you keep tracked your new .md files that probably you are working on but yet they aren't ready to be published?
from cryogen.
@tangrammer I version the cryogen directory separately and .gitignore the
resources dir
tangrammer [email protected] schrieb am Mo., 19. Jan. 2015 22:28:
@dl1ely https://github.com/dl1ely But in this case, how do you keep
tracked your new .md files that probably you are working on but yet they
aren't ready to be published?—
Reply to this email directly or view it on GitHub
#36 (comment)
.
from cryogen.
Stefan, could you specify this last part and full github flow for future
users?
Then, we could compare with my trick, I think it will help a lot!
Thanks
2015-01-20 6:06 GMT+00:00 Stefan Pfeiffer [email protected]:
@tangrammer I version the cryogen directory separately and .gitignore the
resources dirtangrammer [email protected] schrieb am Mo., 19. Jan. 2015
22:28:@dl1ely https://github.com/dl1ely But in this case, how do you keep
tracked your new .md files that probably you are working on but yet they
aren't ready to be published?—
Reply to this email directly or view it on GitHub
<
https://github.com/cryogen-project/cryogen/issues/36#issuecomment-70564061>.
—
Reply to this email directly or view it on GitHub
#36 (comment)
.
from cryogen.
I will try as soon as my time allows…
tangrammer [email protected] schrieb am Di., 20. Jan. 2015 09:01:
Stefan, could you specify this last part and full github flow for future
users?
Then, we could compare with my trick, I think it will help a lot!
Thanks2015-01-20 6:06 GMT+00:00 Stefan Pfeiffer [email protected]:
@tangrammer I version the cryogen directory separately and .gitignore
the
resources dirtangrammer [email protected] schrieb am Mo., 19. Jan. 2015
22:28:@dl1ely https://github.com/dl1ely But in this case, how do you keep
tracked your new .md files that probably you are working on but yet
they
aren't ready to be published?—
Reply to this email directly or view it on GitHub
<https://github.com/cryogen-project/cryogen/issues/36#issuecomment-70564061>
.
—
Reply to this email directly or view it on GitHub
<
https://github.com/cryogen-project/cryogen/issues/36#issuecomment-70608879>.
—
Reply to this email directly or view it on GitHub
#36 (comment)
.
from cryogen.
I am very late on this one, but i wanted to deliver:
http://dl1ely.github.io/posts/2015-03-04-how-to-use-cryogen-with-github-pages.html
Sorry.
from cryogen.
hi @dl1ely - just a note to say the URL points to a 404 on GitHub Pages. Irony abounds :-).
from cryogen.
@yatesco You are right. The internet is a volatile medium. A abandoned cryogen some time ago for hubpress, moved over some posts by hand (but not all, especially not the cryogen ones), and the URLs are different. Sorry for that.
from cryogen.
@dl1ely But in this case, how do you keep tracked your new .md files that probably you are working on but yet they aren't ready to be published?
I ran into this issue while trying to publish my blog to github using cryogen. dl1ely's explanation is no longer available, but I figured out a pretty simple solution to the question posed above and thought I would share it in case anyone else stumbles upon this as I did.
In config.edn
you can specific :ignored-files
. If you just come up with a naming convention for markdown files that aren't ready to be published, you can ignore your work-in-progress files using a regex.
By adding #"[\-\w\d]+(wip\.md)"
to the :ignored-files
, for example, I can name a post 2017-01-03-wip.md
and it will not be added to cryogen's generated files if I need to make an update to an existing file and commit it to github. (any file in this case ending with wip.md will not be added to generated files)
from cryogen.
You can add a :draft?
key to your post metadata and set it to true
to flag a post as a draft. It won't be included in the compilation process. (Docs here)
Alternatively, a PR was recently submitted and it enables you to set a :hide-future-posts?
key to true
in the config.edn
to have only current and past posts be included in the compilation process. (Docs here)
from cryogen.
@lacarmen that's much more straight-forward. Thanks for the reply. I should read the docs more carefully before interjecting!
from cryogen.
Related Issues (20)
- Serve headless with containerized development environment HOT 4
- Add support for author avatar and bio for multiple authors HOT 1
- How to change the port for `lein serve` HOT 4
- [feature] pagination for posts summary HOT 1
- [feature] unique files names HOT 1
- `clojure -M:build` exite code HOT 1
- Sass-location theme error, with fresh project, using lotus/nucleus HOT 1
- deploy in nginx, but" hljs is not defined" HOT 1
- Doc: "full build" is only mentioned in the end. HOT 3
- MathJax integration HOT 2
- RSS feed: only publishes article's "summary" HOT 2
- deps-new error when creating a new site HOT 2
- Auto-refresh feature doesn't work with Nucleus template. HOT 1
- How to upgrade old blog to newest version of Cryogen HOT 1
- How to set one post to the home page HOT 1
- Router serving static-file only works locally HOT 6
- Lotus Theme error, "resource content/themes/lotus/img not found" HOT 2
- The `/blog/blog/` problem HOT 3
- Cryogen does not list as a clojure project HOT 2
- Feature Request: Marking posts as "unlisted" HOT 3
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 cryogen.