You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cdcd .git/${repo}/bin
systemctl link /home/${USERNAME}/.git/${repo}/bin/webServer.service
NodeJS
sudo snap install --edge --classic node
npm i
mkdir "${HOME}/.npm-packages"
vim ~/.zshrc
###.zshrc
NPM_PACKAGES="${HOME}/.npm-packages"export PATH="$PATH:$NPM_PACKAGES/bin"# Preserve MANPATH if you already defined it somewhere in your config.# Otherwise, fall back to `manpath` so we can inherit from `/etc/manpath`.export MANPATH="${MANPATH-$(manpath)}:$NPM_PACKAGES/share/man"export PATH=$PATH:/snap/bin
#######
npm i nodemon -global
Mysql
sudo apt install mysql-server
sudo mysql_secure_installation
sudo mysql -u root -p
SET GLOBAL validate_password_policy=low
CREATE DATABASE ${db};
create USER 'webapp'@'localhost' IDENTIFIED WITH mysql_native_password BY 'randompassword'; GRANT ALL PRIVILEGES ON `sRNAPlantPortal`.* TO 'webapp'@'localhost'; FLUSH PRIVILEGES;
sudo mysql -u root -D ${db} -p <SQL/LATEST_dump.sql
REVOKE ALL privileges ON `sRNAPlantPortal`.`User` FROM `webapp`;
REVOKE ALL privileges ON `sRNAPlantPortal`.`Access` FROM `webapp`;##Fix auth method
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'