Skip to content

Instantly share code, notes, and snippets.

View anx21's full-sized avatar

Ankit Mehta anx21

View GitHub Profile
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
anx21 / eslint
Last active August 30, 2016 02:44
Download Atom and get these two packages: Linter and [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
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
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),
3. Set up docker on vagrant machine
4. Set up git hooks on vagrant machine
/*** FILES ***/
# -*- mode: ruby -*-