|
6 | 6 | </div>
|
7 | 7 |
|
8 | 8 | <div class="form-group">
|
9 |
| - <div class="clearfix"><label>Choose Deploy Target</label></div> |
10 |
| - |
11 | 9 | <label class="col-xs-12 radio-tile">
|
12 | 10 | <input type="radio" name="vagrantfile[target]" value="digitalocean" class="invisible"
|
13 | 11 | {% if providerChosen %}checked{% endif %} />
|
|
19 | 17 | <span class="footer">
|
20 | 18 | A new server will be spun up at Digital Ocean.
|
21 | 19 | <a href="#" data-toggle="modal"
|
22 |
| - data-vm-target="#vagrantfile-digitalocean-modal">Click here for instructions</a>. |
| 20 | + data-target="#vagrantfile-digitalocean-modal">Click here for instructions</a>. |
23 | 21 | </span>
|
24 | 22 | </span>
|
25 | 23 | </label>
|
|
175 | 173 |
|
176 | 174 | <a href="#" data-source-url="{{ path('puphpet.vagrantfile_digitalocean.synced_folder') }}"
|
177 | 175 | class="add-block"><i class="fa fa-level-up fa-rotate-90"></i> Add another shared folder pair</a>
|
| 176 | +</div> |
178 | 177 |
|
179 |
| - <div class="modal fade" id="vagrantfile-digitalocean-modal" tabindex="-1" role="dialog" |
180 |
| - aria-labelledby="vagrantfile-digitalocean-modal-label" aria-hidden="true"> |
181 |
| - <div class="modal-dialog"> |
182 |
| - <div class="modal-content"> |
183 |
| - <div class="modal-header"> |
184 |
| - <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span |
185 |
| - aria-hidden="true">×</span></button> |
186 |
| - <h4 class="modal-title" id="vagrantfile-digitalocean-modal-label"> |
187 |
| - Instructions for Digital Ocean Deployment |
188 |
| - </h4> |
189 |
| - </div> |
190 |
| - <div class="modal-body"> |
191 |
| - <h3>Digital Ocean Droplet</h3> |
192 |
| - |
193 |
| - <p> |
194 |
| - Don't have a Digital Ocean account? |
195 |
| - <a href="https://www.digitalocean.com/?refcode=475274cc0939" target="_blank">Click here to create one</a> |
196 |
| - (affiliate link - help support this free service)! |
197 |
| - </p> |
198 |
| - |
199 |
| - <p> |
200 |
| - Login to Digital Ocean and |
201 |
| - <a href="https://www.digitalocean.com/api_access" target="_blank">go to the API page</a>. |
202 |
| - You will need a Client ID and API Key. |
203 |
| - </p> |
204 |
| - |
205 |
| - <h3>Installation Requirements</h3> |
206 |
| - |
207 |
| - <p>Run the following commands from your host's terminal (not within the VM):</p> |
208 |
| - |
209 |
| - <ul class="nav nav-pills"> |
210 |
| - <li class="active"><a href="#digital_ocean-instructions-mac" data-toggle="pill">Mac</a></li> |
211 |
| - <li><a href="#digital_ocean-instructions-windows" data-toggle="pill">Windows</a></li> |
212 |
| - <li><a href="#digital_ocean-instructions-linux" data-toggle="pill">Linux</a></li> |
213 |
| - </ul> |
214 |
| - |
215 |
| - <div class="tab-content"> |
216 |
| - <div class="tab-pane active" id="digital_ocean-instructions-mac"> |
217 |
| - <code class="col-xs-11 inline-instructions"> |
218 |
| - $ vagrant plugin install vagrant-digitalocean<br /> |
219 |
| - $ vagrant box add dummy https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box |
220 |
| - </code> |
221 |
| - </div> |
222 |
| - <div class="tab-pane" id="digital_ocean-instructions-windows"> |
223 |
| - <code class="col-xs-11 inline-instructions"> |
224 |
| - $ vagrant plugin install vagrant-digitalocean<br /> |
225 |
| - $ vagrant box add dummy https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box |
226 |
| - </code> |
227 |
| - |
228 |
| - <div class="clearfix"></div> |
229 |
| - |
230 |
| - <p> |
231 |
| - You need rsync installed. Easiest way is to use Cygwin and install it through there. |
232 |
| - Alternatively, you can |
233 |
| - <a href="https://www.itefix.no/i2/content/cwrsync-free-edition" target="_blank">install rsync separately</a> |
234 |
| - and add it to your PATH. |
235 |
| - </p> |
236 |
| - </div> |
237 |
| - <div class="tab-pane" id="digital_ocean-instructions-linux"> |
238 |
| - <code class="col-xs-11 inline-instructions"> |
239 |
| - $ vagrant plugin install vagrant-digitalocean<br /> |
240 |
| - $ vagrant box add dummy https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box |
241 |
| - </code> |
242 |
| - </div> |
| 178 | +<div class="modal fade" id="vagrantfile-digitalocean-modal" tabindex="-1" role="dialog" |
| 179 | + aria-labelledby="vagrantfile-digitalocean-modal-label" aria-hidden="true"> |
| 180 | + <div class="modal-dialog"> |
| 181 | + <div class="modal-content"> |
| 182 | + <div class="modal-header"> |
| 183 | + <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span |
| 184 | + aria-hidden="true">×</span></button> |
| 185 | + <h4 class="modal-title" id="vagrantfile-digitalocean-modal-label"> |
| 186 | + Instructions for Digital Ocean Deployment |
| 187 | + </h4> |
| 188 | + </div> |
| 189 | + <div class="modal-body"> |
| 190 | + <h3>Digital Ocean Droplet</h3> |
| 191 | + |
| 192 | + <p> |
| 193 | + Don't have a Digital Ocean account? |
| 194 | + <a href="https://www.digitalocean.com/?refcode=475274cc0939" target="_blank">Click here to create one</a> |
| 195 | + (affiliate link - help support this free service)! |
| 196 | + </p> |
| 197 | + |
| 198 | + <p> |
| 199 | + Login to Digital Ocean and |
| 200 | + <a href="https://www.digitalocean.com/api_access" target="_blank">go to the API page</a>. |
| 201 | + You will need a Client ID and API Key. |
| 202 | + </p> |
| 203 | + |
| 204 | + <h3>Installation Requirements</h3> |
| 205 | + |
| 206 | + <p>Run the following commands from your host's terminal (not within the VM):</p> |
| 207 | + |
| 208 | + <ul class="nav nav-pills"> |
| 209 | + <li class="active"><a href="#digital_ocean-instructions-mac" data-toggle="pill">Mac</a></li> |
| 210 | + <li><a href="#digital_ocean-instructions-windows" data-toggle="pill">Windows</a></li> |
| 211 | + <li><a href="#digital_ocean-instructions-linux" data-toggle="pill">Linux</a></li> |
| 212 | + </ul> |
| 213 | + |
| 214 | + <div class="tab-content"> |
| 215 | + <div class="tab-pane active" id="digital_ocean-instructions-mac"> |
| 216 | + <code class="col-xs-11 inline-instructions"> |
| 217 | + $ vagrant plugin install vagrant-digitalocean<br /> |
| 218 | + $ vagrant box add dummy https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box |
| 219 | + </code> |
| 220 | + </div> |
| 221 | + <div class="tab-pane" id="digital_ocean-instructions-windows"> |
| 222 | + <code class="col-xs-11 inline-instructions"> |
| 223 | + $ vagrant plugin install vagrant-digitalocean<br /> |
| 224 | + $ vagrant box add dummy https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box |
| 225 | + </code> |
| 226 | + |
| 227 | + <div class="clearfix"></div> |
| 228 | + |
| 229 | + <p> |
| 230 | + You need rsync installed. Easiest way is to use Cygwin and install it through there. |
| 231 | + Alternatively, you can |
| 232 | + <a href="https://www.itefix.no/i2/content/cwrsync-free-edition" target="_blank">install rsync separately</a> |
| 233 | + and add it to your PATH. |
| 234 | + </p> |
243 | 235 | </div>
|
| 236 | + <div class="tab-pane" id="digital_ocean-instructions-linux"> |
| 237 | + <code class="col-xs-11 inline-instructions"> |
| 238 | + $ vagrant plugin install vagrant-digitalocean<br /> |
| 239 | + $ vagrant box add dummy https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box |
| 240 | + </code> |
| 241 | + </div> |
| 242 | + </div> |
244 | 243 |
|
245 |
| - <h3>Accessing Your VM</h3> |
| 244 | + <h3>Accessing Your VM</h3> |
246 | 245 |
|
247 |
| - <p> |
248 |
| - To access your VM after running <code>$ vagrant up</code>, type |
249 |
| - <code>$ vagrant ssh-config</code> to get the IP address assigned to the server you created, |
250 |
| - and add the IP address to your computer's hosts file. Type <code>$ vagrant ssh</code> to |
251 |
| - be immediately connected via SSH to your new server! |
252 |
| - </p> |
| 246 | + <p> |
| 247 | + To access your VM after running <code>$ vagrant up</code>, type |
| 248 | + <code>$ vagrant ssh-config</code> to get the IP address assigned to the server you created, |
| 249 | + and add the IP address to your computer's hosts file. Type <code>$ vagrant ssh</code> to |
| 250 | + be immediately connected via SSH to your new server! |
| 251 | + </p> |
253 | 252 |
|
254 |
| - <h3 class="text-warning">If you choose CentOS</h3> |
| 253 | + <h3 class="text-warning">If you choose CentOS</h3> |
255 | 254 |
|
256 |
| - <p> |
257 |
| - The CentOS images do not ship with <code>rsync</code> installed! The first time you run |
258 |
| - <code>$ vagrant up</code> IT WILL ERROR, but this is OK! Simply <code>$ vagrant ssh</code> |
259 |
| - and type <code>$ sudo yum install rsync</code>. Once it finished installing, run |
260 |
| - <code>$ vagrant provision</code>. |
261 |
| - </p> |
262 |
| - </div> |
263 |
| - <div class="modal-footer"> |
264 |
| - <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> |
265 |
| - </div> |
| 255 | + <p> |
| 256 | + The CentOS images do not ship with <code>rsync</code> installed! The first time you run |
| 257 | + <code>$ vagrant up</code> IT WILL ERROR, but this is OK! Simply <code>$ vagrant ssh</code> |
| 258 | + and type <code>$ sudo yum install rsync</code>. Once it finished installing, run |
| 259 | + <code>$ vagrant provision</code>. |
| 260 | + </p> |
| 261 | + </div> |
| 262 | + <div class="modal-footer"> |
| 263 | + <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> |
266 | 264 | </div>
|
267 | 265 | </div>
|
268 | 266 | </div>
|
|
0 commit comments