- Ubuntu 16.04
- Vagrant 1.8.5
- Virtualbox 5.1
- Symfony 1.4
- CentOS 6
2. Vagrant up
a. From the vagrant directory, run command:
vagrant up
*Notice: if you get error from this step something like following:
The error indicates the authentication is failed. Then you need to open the Vagrantfile and add these line:
config.ssh.insert_key = false
config.ssh.username = 'vagrant'
config.ssh.password = 'vagrant'
*If you get the error like this:
The error show that your UUID is already existed. The command you need to against this error is to change the UUID:
VBoxManage internalcommands sethduuid ./tmp/disk.vdi
b. Run ansible command to transfer source code from your computer to your virtual vagrant
When you have already logged via ssh, run command:
ansible-playbook /vagrant/local.yml
Because the source code of this project is quite heavy, we need to wait about 10 minutes to complete the execution.
3. Get the SSL Certificate
If you are finally successful in installing vagrant, read the blog to know to create a self-signed certificate:
https://scutiasia.blogspot.com/2016/10/how-to-set-up-ssl-certificate-with.html
4. Set up SFTP/FTP
You should config 4 main lines:
host: This is IP of your host. In my case is 192.168.33.13
user: Name of your host
password: For both user and password, it's up to you in naming the config.
remote_path: This is the most important edit. The remote_path points to the "mother" directory which contains both frontend and backend side.
We're done. Good luck!
0 Comments:
Post a Comment