git rm file1.txt git commit -m "remove file1.txt" But if you want to remove the file only from the Git repository and not remove it from the filesystem, use: git rm --cached file1.txt git rm -r --cached folder git commit -m "remove file1.txt & folder" https://stackoverflow.com/questions/2047465/how-can-i-delete-a-file-from-a-git-repository
example
@ A 111.1.111.11 www CNAME domain.lt. @ MX 10 mail.serveriai.lt @ TXT "v=spf1 a mx ptr redirect=spf.serveriai.lt" OR @ A 111.1.111.11 * A 111.1.111.11
prestashop + git
simple implementation https://medium.com/@PolGuixe/deploying-a-prestashop-ecommerce-the-cloud-friendly-way-part-6-git-power-f43219585cb9 Setting up your local environment https://devdocs.prestashop.com/1.7/themes/getting-started/setting-up-your-local-environment/
smarty variables print_r
{$variable|print_r}
ExecTimeLimit
\phpMyAdmin\libraries\donfig.default.php $cfg['ExecTimeLimit'] = 300;
deploy
1. ps_shop_url domain (pvz: localhost) domain_ssl physical_uri (pvz /saitas/) 2. ps_configuration PS_SHOP_DOMAIN PS_SHOP_DOMAIN_SSL PS_SSL_ENABLED 3. clean cache: /var/cache (dev&prod dirs) 4. remove .htaccess file 5. admin->shop parameters->traffic(duomenu srautas ir SEO) a) disable friendly URL (Draugiškas URL) b) enable friendly URL
php.ini
sudo nano /etc/php/7.4/fpm/php.ini memory_limit = 128M post_max_size = 20M upload_max_filesize = 10M sudo service php7.4-fpm restart sudo nano /etc/nginx/nginx.conf client_max_body_size 99M; sudo service nginx restart
git restore branch
1. git reflog 2. git checkout -b https://confluence.atlassian.com/bbkb/how-to-restore-a-deleted-branch-765757540.html
Nginx: 413 – Request Entity Too Large Error and Solution
1. sudo nano /etc/nginx/nginx.conf 2. # set client body size to 20M # Add the following line to http or server or location context client_max_body_size 20M; 3. service nginx reload https://www.cyberciti.biz/faq/linux-unix-bsd-nginx-413-request-entity-too-large/
v-model component + vuex
————————————————————————
<template>
<select @change=”on_change($event.target)” :value=”value”
class=”form-control” name=”country” required>
<option v-for=”country in countries” :value=”country.value”>
{{country.name}}
</option>
</select>
</template>
methods: {
on_change(target){
this.$emit(‘input’, target.value)
}
}
————————————————————–
<countries v-if=”countries_fetched” v-model=”country_value” />
computed: {
country_value: {
get: function(){
return this.$store.getters[‘location/country_value’]
},
set: function(value){
this.$store.commit(‘location/set_country_value’, value)
}
}