gonzakpo/symfony_base

Symfony基础包添加了管理员用户、安全、固定数据、引导。

安装: 0

依赖者: 0

建议者: 0

安全: 0

星标: 2

关注者: 3

分支: 3

开放问题: 7

类型:symfony-project


README

Symfony基础包添加了管理员用户、安全、固定数据、引导。

安装

打开命令行控制台,进入项目目录并执行

git clone https://github.com/gonzaloalonsod/symfony_base.git
cd symfony_base
composer install
composer dump-env prod
# cp .env .env.local

配置.env.local

  • SUPER_EMAIL=
  • SUPER_PASSWORD=
symfony console doc:data:create
symfony console doc:sche:create
symfony console doc:fix:load

Docker compose

* Start containers in the background: `docker-compose up -d`
* Start containers on the foreground: `docker-compose up`. You will see a stream of logs for every container running.
* Stop containers: `docker-compose stop`
* Kill containers: `docker-compose kill`
* View container logs: `docker-compose logs`
* Execute command inside of container: `docker-compose exec SERVICE_NAME COMMAND` where `COMMAND` is whatever you want to run. Examples:
    * Shell into the PHP container, `docker exec -it symfony-php-fpm bash`
    * Run symfony console, `docker exec symfony-php-fpm bin/console`
    * Open a mysql shell, `docker exec symfony-mariadb mysql -uroot -pCHOSEN_ROOT_PASSWORD`

Docker网址

* http://127.0.0.1:8080

使用

作者

贡献者