New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: environment configurations #9

Closed
yosymfony opened this Issue May 30, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@yosymfony
Copy link
Member

yosymfony commented May 30, 2014

This proposal describe how to load configurations for different environments. This is useful for to write configuration options for development and productions environments.

By default, Spress will generate your site for the development environment (dev) using the file config.yml. If you want to generate your site using another configuration environment like production you can to create a file called config_prod.yml with the options that will be overrided in config.yml

The hierarchy of files

  • config.yml (mandatory)
  • config_{environment-name}.yml (optional)

At the first time Spress will load the config.yml file. Then if you are using environment configuration, Spress will load the environment configuration file.

Dev environment
Spress will load only config.yml if --env option have dev value.

How to set the evironment in command line?
To enable the environment, you need to use --env={environment-name} option:
$ spress site:build --env=prod

At the before example, Spress try to load a file called config_prod.yml.

@yosymfony yosymfony referenced this issue May 30, 2014

Closed

Roadmap to v1.1.0 #8

7 of 8 tasks complete

yosymfony referenced this issue Jun 8, 2014

@yosymfony yosymfony closed this Jun 8, 2014

yosymfony referenced this issue Jun 12, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment