An open API service indexing awesome lists of open source software.

https://github.com/unclechu/sibtek-site


https://github.com/unclechu/sibtek-site

cms livescript stylus

Last synced: 2 months ago
JSON representation

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
```