Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Ambiente de Desenvolvimento RoR com Vagrant
Search
Matheus Andrade
October 26, 2013
Programming
1
45
Ambiente de Desenvolvimento RoR com Vagrant
Slides utilizados no Rails Girls Salvador em 25-26 de Outubro de 2013
Matheus Andrade
October 26, 2013
Tweet
Share
More Decks by Matheus Andrade
See All by Matheus Andrade
Precisamos falar sobre Software Sustentável
matheuslao
0
14
Iracema: Assistente Virtual do Ministério Público da Bahia
matheuslao
0
22
Práticas DevOps no TRT5ª Região
matheuslao
0
24
Dockerizando Ambientes de Desenvolvimento
matheuslao
0
37
Infra Ágil
matheuslao
0
99
Git Básico em 60 minutos
matheuslao
0
120
Orientação a Objetos - Primeiros Passos
matheuslao
0
49
Git: Primeiras Impressões
matheuslao
2
250
Introdução às Metodologias Ágeis de Software
matheuslao
1
93
Other Decks in Programming
See All in Programming
FormFlow - Build Stunning Multistep Forms
yceruto
1
190
Bytecode Manipulation 으로 생산성 높이기
bigstark
2
370
第9回 情シス転職ミートアップ 株式会社IVRy(アイブリー)の紹介
ivry_presentationmaterials
1
230
型付きアクターモデルがもたらす分散シミュレーションの未来
piyo7
0
810
PHP 8.4の新機能「プロパティフック」から学ぶオブジェクト指向設計とリスコフの置換原則
kentaroutakeda
2
470
Cline指示通りに動かない? AI小説エージェントで学ぶ指示書の書き方と自動アップデートの仕組み
kamomeashizawa
1
570
[初登壇@jAZUG]アプリ開発者が気になるGoogleCloud/Azure+wasm/wasi
asaringo
0
130
データの民主化を支える、透明性のあるデータ利活用への挑戦 2025-06-25 Database Engineering Meetup#7
y_ken
0
310
GoのWebAssembly活用パターン紹介
syumai
3
10k
ruby.wasmで多人数リアルタイム通信ゲームを作ろう
lnit
2
220
ReadMoreTextView
fornewid
1
460
Systèmes distribués, pour le meilleur et pour le pire - BreizhCamp 2025 - Conférence
slecache
0
100
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.8k
The Art of Programming - Codeland 2020
erikaheidi
54
13k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
107
19k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
8
670
Site-Speed That Sticks
csswizardry
10
650
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.4k
Being A Developer After 40
akosma
90
590k
Unsuck your backbone
ammeep
671
58k
Side Projects
sachag
455
42k
The Pragmatic Product Professional
lauravandoore
35
6.7k
Producing Creativity
orderedlist
PRO
346
40k
Designing for humans not robots
tammielis
253
25k
Transcript
Ambiente de Desenvolvimento com Vagrant Pequeno Passo-a-Passo Rails Girls Salvador:
25-26 de Outubro de 2013 http://railsgirls.com/salvador
Instalando o VirtualBox http://www.virtualbox.org/wiki/Downloads* * offline: pegar com o monitor
Instalando o Vagrant downloads.vagrantup.com* * offline: pegar com o monitor
Se você usa Windows... Putty - (www.putty.org) Download de*: •
Putty; • PuttyGen * offline: pegar com o monitor
BOX do Ruby on Rails https://github.com/rails/rails-dev-box Se tem Git instalado:
git clone Senão: Download ZIP Más já preparamos uma box offline redondinha!
Box do Ruby on Rails Pegar a box: railsgirls.box com
os monitores $ vagrant box add railsgirls /path/to/railsgirls.box $ mkdir <meu-projeto> $ cd <meu-projeto> $ vagrant init railsgirls
Box do Ruby on Rails Linha 22-23 do Vagrantfile: config.vm.network
:forwarded_port, guest: 3000, host: 3000
Executando nosso Ambiente Virtual No terminal (Mac, Linux) ou no
Windows Power Shell: • cd <projeto> • vagrant up Primeira vez pode demorar um pouco!
Ajuda com Comandos Vagrant box, destroy, init, reload, resume…. $
vagrant help $ vagrant <comando> -h
Conexão SSH Mac e Linux é fácil! $ vagrant ssh
Se você usa Windows... Abra o PuttyGen Clique em “Load”
C:/Users/<seuUsuario>/.vagrant.d/insecure_private_key Clique em “Open”
Se você usa Windows... Aperte “OK” Clique em “Save private
Key” Clique em “Yes” Salve o arquivo “vagrant.ppk” no mesmo local do “insecure_private_key”
SSH com o Windows Lembram do Putty? Host: 127.0.0.1 Porta:
2222* * Se você utilizar muitas máquinas virtuais, o valor pode ser outro
SSH com Windows Selecione: Connection > SSH > Auth Clique
em “Browse” Selecione o arquivo “vagrant.ppk”. Lembra dele? (C:/Users/<seuUsuario>/.vagrant.d/vagrant.ppk)
SSH no Windows Selecione “Session” e salve suas configurações Clique
em “Open” Clique em “Yes” Se aparecer “login as:”, digite vagrant PRONTO!
Referências http://docs.vagrantup.com/v2/getting-started/index.html http://simplesideias.com.br/usando-o-vagrant-como-ambiente-de- desenvolvimento-no-windows https://github.com/rails/rails-dev-box
None