定制 bigfork/silverstripe-recipe 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bigfork/silverstripe-recipe

Composer 安装命令:

composer require bigfork/silverstripe-recipe

包简介

Bigfork’s SilverStripe CMS recipe

README 文档

README

Bigfork’s quickstart recipe for simple SilverStripe 5 projects. Contains frequently used modules, templates, config settings, JavaScript and CSS.

Project setup

  • Run composer create-project bigfork/silverstripe-recipe ./project dev-master
  • Answer yes to “Do you want to remove the existing VCS (.git, .svn..) history?”
  • Run ddev start
  • Run ddev composer install
  • Run cp .env.example .env
  • Draw the rest of the owl

Deployments

We use Deployer for deployments, which can be installed either globally (recommended):

curl -LO https://deployer.org/deployer.phar
mv deployer.phar /usr/local/bin/dep
chmod +x /usr/local/bin/dep

Or on a per-project basis with Composer:

composer --dev require deployer/deployer

Configuration

Edit deploy/config.php and set the application name and git repository URL. Everything else is optional.

Deploying a site

It’s as easy as dep deploy.

On the first deploy, you’ll probably want to include the database and assets:

dep deploy
dep silverstripe:upload_assets
dep silverstripe:upload_database

You’ll also be asked (the first time you deploy to a given stage) to provide database credentials used to populate .env.

Deploying to production

Much the same as deploying to staging, just provide a third argument to select the stage (either staging or production):

dep deploy production

Deploy a branch/tag

# Deploy the dev branch to staging
dep deploy --branch=dev

# Deploy tag 1.0.1 to production
dep deploy production --tag=1.0.1

Uploading/downloading database & assets manually

# Upload assets
dep silverstripe:upload_assets

# Upload database
dep silverstripe:upload_database

# Download assets
dep silverstripe:download_assets

# Download database
dep silverstripe:download_database

# Upload assets to production
dep silverstripe:upload_assets production

# Upload database to production
dep silverstripe:upload_database production

# Download assets from production
dep silverstripe:download_assets production

# Download database from production
dep silverstripe:download_database production

Manual dev/build

# dev/build on staging
dep silverstripe:dev_build

# dev/build on production
dep silverstripe:dev_build production

统计信息

  • 总下载量: 259
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 5
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2018-01-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固