Vagrant template for ServerPilot
This repository provides a better way to install Vagrant w/ ServerPilot. After following the installation instructions, you’ll have a server managed by ServerPilot and accessible via your browser at anything-you-want-to
.
You will be able to setup as many domain as you want. And a better, faster stack for developing Magento 2
$ vagrant up
$ vagrant ssh
Click I don't have a root password or public IP address
at the bottom
Hostname
=> Anything you want
SFTP Password
=> Choose a password
Enable SSH password authentication if it's current disabled
(uncheck if you don’t want to use password)Copy server-id and server-api-key in the command ServerPilot generated into settings.yml
Your settings.yml
will look like this :
Watch ServerPilot install
Testing server configuration
may take several minutes (3-5 minutes based on your Internet connection’s moods)Name
=> anything-you-want
Domain
=> anything.domain
Runtime
=> choose-your-php-version
(such as 5.6)Server
=> your-newly-created-server
Name
=> anything-you-want
Username
=> <generated>
Password
=> <generated>
(should copy to somewhere because you can’t change it via GUI)hosts
fileadministrator
/ root
/etc/hosts
C:\WINDOWS\system32\drivers\etc\hosts
<your-private-ip> anything.domain
The following configuration are not required, but could be useful some day.
Dnsmasq is a very well-known package in nix world (Mac OS X is Unix, Ubuntu is Linux).
It provides network infrastructure for small networks such as DNS, DHCP, router advertisement and network boot.
If you need to point a domain to a specified IP address like .dev, .local, .xxx to 127.0.0.1*, you will need Dnsmasq!
Are you tired by changing your hosts file all the time? Do you want to config your hosts file once and never touch it again?
Then ladies and gentlemen, I present to you: Acrylic DNS - an alternative Dnsmasq for Windows.
PrimaryServerAddress=8.8.8.8
and replace 8.8.8.8
to your primary DNS server you’d likeSecondaryServerAddress=8.8.4.4
and replace 8.8.4.4
to your secondary DNS server you’d like<your-private-ip> *.domain
to the end of file (replace .domain to whatever you want such as .local)SFTP
Yes, you can connect to the server using the SFTP method !
Transmit
.Host
=> <your-private-ip>
User
=> serverpilot
Password
=> The SFTP password that you provided at the beginning of this tutorial
Port
=> 22
ubuntu
user :Host
=> <your-private-ip>
User
=> ubuntu
Password
=> ubuntu
Port
=> 22
serverpilot
user and not the vagrant
, else you will probably have some permissions issues (i.e : https://serverpilot.io/community/articles/how-to-fix-file-permissions.html)