Configure Project

Stackpress prefers configuration over code, in that plugins with a shared config, can auto-configure themselves versus setting specific configurations per plugin. We can identify the usual development stages of a project as follows.
  • Development - The project needs to have specific configuration to support the development server.
  • Building - The project needs to have specific configuration to support the compiling of the code and distribution of files.
  • Preview - The project needs to have specific configuration to test the code distribution before deploying.
  • Deploy - The project needs to have specific configuration for build servers to deploy to the final server.
  • Production - The project needs to have specific configuration that runs on the production server.
Though we can already identify what kind of configuration would be specific to each stage, we can also identify what kind of configuration would be shared across all stages. To get a detailed overview of all the configuration options, please refer to the Configuration section of the documentation.

Common Configuration

The following configuration example options are "safe" to add in any stage. You should set these in a separate file.
Copy

Development Configuration

The following configuration example options are designed for the development stage.
Copy
NOTE: Make sure to the config.
To use this configuration file you can run the following command in the terminal.
Copy

Build Configuration

The following configuration example options are designed for the build stage.
Copy
NOTE: Make sure to the config.
To use this configuration file you can run the following command in the terminal.
Copy

Preview Configuration

The following configuration example options are designed for the preview stage.
Copy
NOTE: Make sure to the config.
To use this configuration file you can run the following command in the terminal.
Copy