Object.assign(obj1, obj2);
Object.assign method merge obj2 to obj1
basic_initiationsequelize
count === select count(*) from where
findAll === select attributes from where
findOne === select district attributes from where
>>> option ( where, order, attributes , include)
include: [ model: Tables, attributes: [columnname1, columnname2]}
pm2 package - for non-stop service
command list
pm2 start app.js
pm2 monit // monitoring all processes
pm2 list // List all processes
pm2 stop
pm2 restart
pm2 stop
**Error: undefined method 'release' for OS::Mac:Module**
`rm -r /usr/local/Caskroom/graphviz`
and it works.
That is due to the package graphviz was moved to homebrew/Core instead from cask.23
[root@smson root]# vi /etc/mysql/mysql.conf.d/mysqld.cnf
[mysqld]
skip-name-resolve
bind-address = 0.0.0.0
back_log = 768
basedir = /opt/mysql/
connect_timeout = 30
mysql> CREATE USER 'ohdear_ci'@'localhost' IDENTIFIED BY 'ohdear_secret';
Query OK, 0 rows affected (0.11 sec)
mysql> GRANT ALL ON ohdear_ci.* TO 'ohdear_ci'@'localhost';
Query OK, 0 rows affected (0.15 sec)
add
"env":{
"jest":true
}
in .eslintrc
create .eslintignore file in root directory
ESLint docs about Igonring rules