https://github.com/unclechu/sibtek-site
https://github.com/unclechu/sibtek-site
cms livescript stylus
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/unclechu/sibtek-site
- Owner: unclechu
- License: agpl-3.0
- Created: 2015-01-29T18:00:28.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-04-15T22:45:19.000Z (almost 8 years ago)
- Last Synced: 2024-12-27T22:21:12.992Z (over 1 year ago)
- Topics: cms, livescript, stylus
- Language: LiveScript
- Homepage: http://sibtek.pro
- Size: 1.36 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE-AGPLv3
Awesome Lists containing this project
README
sibtek-site
===========
How to deploy
-------------
1. Clone this repo and go to directory:
```bash
$ git clone https://github.com/unclechu/sibtek-site sibtek-site
$ cd sibtek-site
```
2. Sync git submodules:
```bash
$ git submodule update --init
```
3. Copy [config.yaml.example](./config.yaml.example) to `config.yaml`:
```bash
$ cp config.yaml.example config.yaml
```
And set correct 'DATABASE', 'PRODUCTION' and 'EMAIL' in `config.yaml`.
4. Install dependencies:
```bash
$ npm install
```
It automatically runs `./deploy.sh` after install, it deploys front-end
scripts and styles for site and admin control panel, it will install
bower-dependencies for front-end too. It runs `./gulp` default tasks,
that build server-side code.
You can rebuild front-end by `./front-end-gulp` util, see more
[here](https://github.com/unclechu/front-end-gulp-pattern).
You can rebuild server-side code by `./gulp server`. You can start watcher
for automatically rebuilding server-side code by
`./gulp server-watch --buildLog` (--buildLog will log every file).
Also it runs automatically after install `./auto-migrate.sh`, you can run it
by your bare hands, it's important thing to do for updates or first site
initialization.
6. Run your production server:
```bash
$ ./run-production-server.js
```