Skip to content

Chlorine

Compare
Choose a tag to compare
@Stoakes Stoakes released this 27 Jun 08:59
· 112 commits to master since this release

Jeyser CRM Chlorine

Migration

cd /var/www/Incipio
git checkout v3.0.0

# save config file and update it
cp var/key_value_store/config.json ./config.json.old
git checkout var/key_value_store/config.json
git pull
mv ./config.json.old var/key_value_store/config.json

mv docker-compose.yml docker-compose.yml.old
cp docker-compose.yml.dist docker-compose.yml
sed -i "s/restart: \"no\"/restart: \"always\"/g" docker-compose.yml
# Update the 2 following commands with relevant values
email=contact@your-je.fr
subdomain=crm.your-je.fr
# Just copy paste the following lines. DO NOT EDIT
sed -i "s/REPLACE_WITH_YOUR_EMAIL/$email/g" docker-compose.yml
sed -i "s/REPLACE_WITH_YOUR_HOST/$subdomain/g" docker-compose.yml

cp .env.dist .env
sed -i "s/REPLACE_WITH_YOUR_HOST/$subdomain/g" .env
sed -i "s/REPLACE_WITH_YOUR_EMAIL/$email/g" .env
SECRET=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
sed -i "s/GENERATED_SECRET/$SECRET/g" .env
sed -i "s/#TRUSTED_HOSTS/TRUSTED_HOSTS/g" .env
sed -i "s/MAILER_URL=null:\/\/localhost/MAILER_URL=smtp:\/\/mailer:25/g" .env

docker-compose build web
docker-compose rm -sf web traefik
docker-compose up -d web traefik
docker-compose exec web php bin/console -n doctrine:migration:migrate

# Old Docker images cleanup
docker rmi $(docker images -f "dangling=true" -q)
docker rmi traefik:1.7 php:7.1-apache mysql:latest

Changelog

Changelog between 2.8.1 & 3.0.0