Created
October 28, 2020 04:40
-
-
Save Zerquix18/d679bce52654385d7ef2bb4b42185961 to your computer and use it in GitHub Desktop.
trabajo final proyecto II
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get update -y | |
apt install git npm nginx mysql-server -y | |
npm install -g forever | |
mysql -u root -e "CREATE USER 'unicaribe'@'localhost' IDENTIFIED BY 'lajevatuya'" | |
mysql -u root -e "GRANT ALL PRIVILEGES ON * . * TO 'unicaribe'@'localhost';" | |
mysql -u root -e 'FLUSH PRIVILEGES' | |
mysql -u unicaribe -p lajevatuya -e 'CREATE DATABASE StudentsDb' | |
git clone https://github.com/esmarlint/StudentApi | |
cd StudentApi | |
npm install | |
npx sequelize-cli db:migrate | |
forever start server.js | |
cd ~ | |
git clone https://github.com/lucianacrx/students-uc | |
cd students-uc | |
npm install | |
npm run build | |
mv build/* /var/www/html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment