#!/bin/bash

# 1. ./grade_postinstall.sh
# 2. sudo set_apache.sh grade-ci
cd /projects/grade && rm package-lock.json
npm install
sudo npm install -g gulp
gulp release

sudo sed -i -- "s@ServerAlias.*@$(echo "ServerAlias grade-dev.mmcs.sfedu.ru" | sed 's/\./\\./g')@g" /etc/apache2/sites-available/grade.conf
#sudo service apache2 start
#./init_settings.sh
