<IMaskInput
placeholder="Enter number here"
mask={"d дней"}
lazy={false}
blocks={{
d: { mask: Number, min: 1, max: 5000, thousandsSeparator: " " }
}}
placeholderChar={" "}
value={days}
unmask={true}
onAccept={(value, mask) => {
setDays(value);
}}
/>
#!/bin/sh
sudo /sbin/deploy-city-helpers
#!/bin/sh
# fix repo permissions after push
cd /home/nonroot/repo/city-helpers.git
# эти строки были добавлены как часть борьбы с проблемой
sudo chown -R nonroot:nonroot HEAD index logs
# all the staff
cd /srv/city-helpers/laravel
php artisan down --render="errors::503"
git --work-tree=/srv/city-helpers/laravel --git-dir=/home/nonroot/repo/city-helpers.git checkout master -f
cp -n ./.env.example ./.env
ln -s ../storage ./storage
COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --optimize-autoloader
php artisan config:cache
php artisan route:cache
php artisan view:cache
php artisan up
nonroot ALL=NOPASSWD: /sbin/deploy-city-helpers