Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Production versus Development env?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nate  
View profile  
 More options Feb 4 2011, 11:40 am
From: Nate <nathan.n...@gmail.com>
Date: Fri, 4 Feb 2011 08:40:11 -0800 (PST)
Local: Fri, Feb 4 2011 11:40 am
Subject: Production versus Development env?
Does anyone disable Disqus or other features locally, while in
"development" mode?

I would like a feature to be able to turn something on or off,
depending on
the environment.

I saw that Jekyll has a site.[CONFIGURATION_OPTIONS] that you can put
in
config.yml.  If Jekyll could take command line params this way, it
could be a solution.

For example, in config.yml, I could have:

site.enable_disqus=true (or whatever the correct yaml way is)

And in my "development mode" I could run:

jekyll --server --auto --site.enable_disqus=false

However, I poked around at Jekyll command line and it doesn't appear
you can pass
custom options to jekyll.  I also investigated Liquid, to see if it
could access Environment
varaibles, (e.g. {% if $DEVMODE %} ) but I couldn't find anything
there, either.

Any ideas?

Thanks,
--Nate


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Davi Barbosa  
View profile  
 More options Feb 4 2011, 11:50 am
From: Davi Barbosa <dbarb...@gmail.com>
Date: Fri, 4 Feb 2011 14:50:59 -0200
Local: Fri, Feb 4 2011 11:50 am
Subject: Re: Production versus Development env?

Passing options as parameters would be very useful!
I am simulating this with a Rake file that changes the config.yml, but it is
an ugly hack.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan Neff  
View profile  
 More options Feb 4 2011, 11:57 am
From: Nathan Neff <nathan.n...@gmail.com>
Date: Fri, 4 Feb 2011 10:57:33 -0600
Local: Fri, Feb 4 2011 11:57 am
Subject: Re: Production versus Development env?

On Fri, Feb 4, 2011 at 10:50 AM, Davi Barbosa <dbarb...@gmail.com> wrote:
> Passing options as parameters would be very useful!
> I am simulating this with a Rake file that changes the config.yml, but it is
> an ugly hack.

Would you mind posting your rake file?  My Ruby is rusty.

Thanks,
--Nate


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Davi Barbosa  
View profile  
 More options Feb 4 2011, 12:18 pm
From: Davi Barbosa <dbarb...@gmail.com>
Date: Fri, 4 Feb 2011 15:18:41 -0200
Local: Fri, Feb 4 2011 12:18 pm
Subject: Re: Production versus Development env?

On Fri, Feb 4, 2011 at 2:57 PM, Nathan Neff <nathan.n...@gmail.com> wrote:
> On Fri, Feb 4, 2011 at 10:50 AM, Davi Barbosa <dbarb...@gmail.com> wrote:
> > Passing options as parameters would be very useful!
> > I am simulating this with a Rake file that changes the config.yml, but it
> is
> > an ugly hack.

> Would you mind posting your rake file?  My Ruby is rusty.

https://github.com/dbarbosa/dbarbosa.me/blob/e2bb4ae59dd7c08da745ddd1...

The "edit_config" method does the trick.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »