Boilerplate template to quickly kick off a new SilverStripe project
The SilverStripe Boilerplate aims to make it easier to kick of a new SilverStripe project, just download it and get started.
- Bram de Leeuw @bramdeleeuw
# create the project # make sure to point to the new remote afterwards composer create-project bramdeleeuw/recipe-boilerplate ./myproject dev-master
You can move the
.env.example to a file named
the file should look like this (more infos at https://docs.silverstripe.org/en/4/getting_started/environment_management/)
this method is recommended for database and environment configuration, because you can easily exclude it from version control
# What kind of environment is this: development, test, or live (ie, production)? SS_ENVIRONMENT_TYPE="dev" # Database settings SS_DATABASE_SERVER="localhost" SS_DATABASE_USERNAME="USER" SS_DATABASE_PASSWORD="PASSWORD" SS_DATABASE_NAME="DB_NAME" # Configure a default username and password to access the CMS on all sites in this environment. SS_DEFAULT_ADMIN_USERNAME="admin" SS_DEFAULT_ADMIN_PASSWORD="password" # Make sure the command line knows what the site url is SS_BASE_URL="http://example.com"
now just run mysite.com/dev/build and you are done, no further setup required, you are ready to go