Monday, March 8, 2021

Running prod Angular on Dev Machine

 Build your app using the prod flag. 

NG_BUILD_MANGLE=false node --max_old_space_size=8048 ./node_modules/@angular/cli/bin/ng build --prod --aot


*NG_BUILD_MANGLE is used for performance troubleshooting. 

once done, go to dist directory and run npm i -g serve (if not already installed)

and then run serve -s. this will start the http server. 


Better you do performance troubleshooting in incognito mode where no chrome extension is loaded. I assumed you are using chome for performance troubleshooting :)

Wednesday, March 3, 2021

Showing network mapped drive in SQL Restore Database

 EXEC sp_configure 'show advanced options', 1;

GO

RECONFIGURE;

GO


EXEC sp_configure 'xp_cmdshell',1

GO

RECONFIGURE

GO


EXEC XP_CMDSHELL 'net use H: \\192.172.0.141\Downloads /User:username password '


You need /User if your shared drive requires authentication. Once this is done, You should be able to see H drive whle restoring the database.