bridgetownrb / bridgetown

A next-generation progressive site generator & fullstack framework, powered by Ruby
https://www.bridgetownrb.com
MIT License
1.16k stars 112 forks source link

Add an `--environment` flag to `bridgetown start` #437

Closed ayushn21 closed 3 years ago

ayushn21 commented 3 years ago

Currently, as far as I can tell, the only way to set the Bridgetown environment is via the BRIDGETOWN_ENV environment variable.

I reckon it'll be useful to allow users to set this while starting the server as well. We could have something like:

bin/bridgetown start --environment test

and

bin/bridgetown -e test
jaredcwhite commented 3 years ago

Resolved in https://github.com/bridgetownrb/bridgetown/commit/c6e6d454e5f89d3889660b21b4c9e0f46af3f68f