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
1289 npm i -g react-native-cli | |
1290 sudo npm i -g react-native-cli | |
1291 javac -versionn | |
1292 javac -version | |
1293 sudo apt-get install oracle-java8-installer | |
1294 sudo add-apt-repository ppa:webupd8team/java | |
1295 sudo apt-get update | |
1296 sudo apt-get install oracle-java8-installer | |
1297 sudo update-alternatives --config java | |
1298 sudo nano /etc/environment |
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
Download Atom and get these two packages: Linter and [Linter-ESLint)(https://atom.io/packages/linter-eslint) | |
Run npm install --save-dev eslint eslint-config-airbnb babel-eslint eslint-plugin-react eslint-plugin-import eslint-plugin-jsx-a11y from your project root. | |
Add "extends": "eslint-config-airbnb" to your .eslintrc |
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
Set up Vagrantfile (set provider to digitalocean) and unit files | |
In provision script, copy over unit files and git hooks | |
vagrant up && systemctl restart docker | |
Build the docker images in the git hook | |
postgres create production database | |
create superuser for psql | |
docker exec <app> rails db:reset |
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
1. Set up Project with Dockerfile and docker-compose.yml | |
(Steps 2, 3 & 4 should be performed with the help of a vagrant bootstrap script): | |
2. Set up vagrant with a port forwarding and private IP(will need to modify /etc/hosts on system hosting vagrant), | |
follow http://tech.osteel.me/posts/2015/01/25/how-to-use-vagrant-for-local-web-development.html | |
3. Set up docker on vagrant machine | |
4. Set up git hooks on vagrant machine | |
/*** FILES ***/ | |
/---Vagrantfile:---/ | |
# -*- mode: ruby -*- |