Kang Andrew

1

votes
1

answer
49

views

NPM - how to deploy a project on to a real server whenever there're some updates

I use the following script whenever updating final codes onto 'git master' on a real server. git fetch origin git reset --hard origin/master rm -rf /var/www/html/projectA/node_modules/ rm /var/www/html/projectA/package-lock.json rm /var/www/html/projectA/public/js/react/entry.js // This is SPA rm /v...
Kang Andrew
0

votes
0

answer
9

views

Web server transaction vs DB trigger - which is preferred?

I would like to ask you for a situation that each value of two tables must be changed at the same time. There are two ways of the above, Web server transaction, DB trigger. Web server transaction is 100% safe? I am worried about a situation like one value of one table has been changed but another va...
Kang Andrew
1

votes
1

answer
38

views

Are there any relations between Chrome cookies and Laravel Auth?

I haven't seen this kind of strange situation. When Auth login does not work, I delete all cookies on Chrome, and I log in successfully. Laravel auth makes me crazy. Sometimes log-in works well, sometimes it doesn't.
Kang Andrew
0

votes
0

answer
2

views

Schema changing DB - which method is better?

I am planning to develop a website which users can customize many items on, so considering three plans. Could you tell me which method is more common? Let's assume we will make a web app for handling all processes of producing toothbrushes. { 'toothbrush set': { 'toothbrush': { 'head': ['dyeing', 'a...
Kang Andrew