Mino website template improvements to make it easier to start

This commit is contained in:
Tony Air 2019-09-08 07:08:53 +07:00
parent 0acdcd0fd5
commit 232cbf6893
2 changed files with 19 additions and 1 deletions

View File

@ -24,9 +24,16 @@ npm install
cd app cd app
git clone https://github.com/a2nt/webpack-bootstrap-ui-kit.git ./client git clone https://github.com/a2nt/webpack-bootstrap-ui-kit.git ./client
cd .. cd ..
cp ./env-dist ./.env
``` ```
Those steps depends on your environment:
1) Edit .env file to define database access credentials and CMS default admin
2) sudo chown www-data:www-data -R public/assets && mkdir silverstripe-cache && chown www-data:www-data -R silverstripe-cache (www-data is commonly used UNIX user name, but it may depend on your environment)
3) Open your-dev-url.pro/dev/build?flush to build database
+ edit .env, robots.txt, humans.txt, cache.appcache, manifest.json and package.json to setup your own project + edit .env, robots.txt, humans.txt, cache.appcache, manifest.json and package.json to setup your own project
+ copy favicon.ico after `yarn build` to ./public folder
## Installing composer at some cpanel hostings ## Installing composer at some cpanel hostings
``` ```
@ -53,7 +60,9 @@ php -d memory_limit=-1 composer.phar update --ignore-platform-reqs
+ Requirements auto-loading + Requirements auto-loading
+ Includes basic silverstripe modules + Includes basic silverstripe modules
+ Some necessary extensions for example editing silverstripe elements as bootstrap grid columns + Some necessary extensions for example editing silverstripe elements as bootstrap grid columns
+ Building themes support + Built-in themes support
... More features available, but I don't have much time to describe all of them ...
### Folder structure: ### Folder structure:

9
env-dist Normal file
View File

@ -0,0 +1,9 @@
SS_DATABASE_SERVER='localhost'
SS_DATABASE_USERNAME=''
SS_DATABASE_PASSWORD=''
SS_DATABASE_NAME=''
SS_DEFAULT_ADMIN_USERNAME=''
SS_DEFAULT_ADMIN_PASSWORD=''
SS_ENVIRONMENT_TYPE='dev'