agaric-coop/README.md

59 lines
1.7 KiB
Markdown
Raw Normal View History

## Get submodules
This project includes the [Agaric styleguide](https://gitlab.com/agaric/styleguide) as a [git submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules).
### When cloning
```
git clone --recurse-submodules git@gitlab.com:agaric/sites/agaric-com.git
```
### If you cloned without `--recurse-submodules`
If in your initial clone you didn't do as above, you can get the styleguide with:
```
git submodule init
git submodule update
```
2018-08-28 14:17:09 +00:00
### Get started
To be able to import the configuration, you need to get the initializing database (where we will also be collaborating on content) [from the test site](https://agaric-test.drutopia.org/) pending resolution of [drutopia#216](https://gitlab.com/drutopia/drutopia/issues/216).
2018-10-08 04:07:26 +00:00
```
vagrant ssh
composer install
drush -y sql-dump > /tmp/paranoia.sql && drush sql-drop && drush -y sql-sync @test @self && drush -y updb
```
2018-08-28 14:17:09 +00:00
### Get updates
```
git submodule update --recursive --remote
```
2018-08-21 22:53:35 +00:00
## Theming
See `web/themes/custom/agarica/README.md` and `web/themes/custom/agarica/patternlibrary/README.md`
## Deployment
Agaric is currently using a Platform as a Service version of Drutopia with additional modules.
Set up [drutopia_host](https://gitlab.com/drutopia-platform/drutopia_host) and [hosting_private](https://gitlab.com/drutopia-platform/hosting_private), as documented in hosting private.
2018-11-05 23:11:20 +00:00
Then use [ahoy](https://github.com/ahoy-cli/ahoy/), from within the hosting_private directory.
If Agaric's Drutopia PaaS base has changed (the composer.lock in this directory), produce and push a new build:
```
ahoy deploy-build agaric
```
To deploy everything else (config, templates, styles):
```
ahoy deploy-site agaric_live
```