Skip to content

dansamara/avto-lux161

 
 

Repository files navigation

avto-lux161

How to deploy

  1. Clone this repo and go to the cloned directory:
$ git clone https://github.com/web-izmerenie/avto-lux161 avto-lux161
$ cd avto-lux161
  1. Install git-submodules:
$ git submodule update --init
  1. Create Python virtual environment and activate it:
$ pyvenv .venv
$ source ./.venv/bin/activate
  1. Install Python requirements:
$ pip3 install -r requirements.txt
  1. Copy config.yaml.example to config.yaml and set in config.yaml:

  2. DATABASE — set correct access data to database;

  3. DEV_SERVER — if you going to start development server;

  4. PRODUCTION_SERVER — if you going to start production server.
    WARNING!: don't set instances more than 1, cause it isn't supported yet, need some debug for errors;

  5. DEBUG — set to 1 if you wan't more debug info.

  6. Copy ./files/uploaded/ dir from backup archive to ./files/uploaded/.

Just for example:

$ cd files
$ tar -xzf ../avtolux_files_backup_20150308050634.tar.gz --strip-components=1 files/uploaded/
  1. Fill database by database dump from backup archive:
$ cat avtolux_db_dump_20150308041213.sql.gz | gunzip | psql --host localhost -U avtolux_user avtolux_dbname

Where avtolux_db_dump_20150308041213.sql.gz is database dump, avtolux_user is user for database access and avtolux_dbname is a database name;

  1. Install npm dependencies and build some front-end stuff:
$ npm install

It automatically runs ./deploy.sh after install and installs some bower dependencies and build front-end by ./front-end-gulp tool;

  1. Run debug server:
$ ./run_development.sh

Or production:

$ ./run_production.sh

About

Back-end and front-end both

Resources

License

AGPL-3.0, GPL-3.0 licenses found

Licenses found

AGPL-3.0
LICENSE-AGPLv3
GPL-3.0
LICENSE-GPLv3

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 37.5%
  • LiveScript 33.6%
  • CSS 17.7%
  • HTML 10.8%
  • Other 0.4%