mirror of
https://github.com/aljazceru/validate_email.git
synced 2026-01-11 02:04:34 +01:00
1.5 KiB
1.5 KiB
How to Set Up Validate Email Using Vagrant on PC
- Download Vagrant & Virtual Box
- Look at http://docs.vagrantup.com/v2/getting-started/ to make a linux virtual machine via vagrant
- tl;dr using bash (Can use regular Windows Terminal)
- Make a folder first, whenever you want to access the vm you will need to cd into that folder
- $ vagrant init hashicorp/precise32
- $ vagrant up
- $ vagrant ssh
- This last command is used to go into your vm
- tl;dr using bash (Can use regular Windows Terminal)
- Install pipin the vm
- http://www.saltycrane.com/blog/2010/02/how-install-pip-ubuntu/
- tl;dr
- $ sudo apt-get install python-pip
- Install pyDNS
- This is a package dependency of validate email
- $ sudo pip install pydns
- Install git
- sudo apt-get install git
- Clone the validate_email repo to your vm
- (Since its a new machine you will need to clone using the https url)
- $ git clone git@github.com:efagerberg/validate_email.git
- If you want to use your ssh keys on your machine you will need to add this line to the vagrant file under the config
- Looks somthing like this:
Vagrant::Config.run do |config|
stuff
config.ssh.forward_agent = true end
- Looks somthing like this:
Vagrant::Config.run do |config|
- cd into validate_email and run script
- $ cd validate_email
- $ python validate_email.py