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
51
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
17
Iracema: Assistente Virtual do Ministério Público da Bahia
matheuslao
0
23
Práticas DevOps no TRT5ª Região
matheuslao
0
27
Dockerizando Ambientes de Desenvolvimento
matheuslao
0
41
Infra Ágil
matheuslao
0
110
Git Básico em 60 minutos
matheuslao
0
120
Orientação a Objetos - Primeiros Passos
matheuslao
0
52
Git: Primeiras Impressões
matheuslao
2
250
Introdução às Metodologias Ágeis de Software
matheuslao
1
99
Other Decks in Programming
See All in Programming
LangChain4jとは一味違うLangChain4j-CDI
kazumura
1
160
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
270
DSPy入門 Pythonで実現する自動プロンプト最適化 〜人手によるプロンプト調整からの卒業〜
seaturt1e
1
600
Agent Skills Workshop - AIへの頼み方を仕組み化する
gotalab555
15
8.2k
NOT A HOTEL - 建築や人と融合し、自由を創り出すソフトウェア
not_a_hokuts
2
590
encoding/json/v2のUnmarshalはこう変わった:内部実装で見る設計改善
kurakura0916
0
350
Takumiから考えるSecurity_Maturity_Model.pdf
gessy0129
1
130
Ruby x Terminal
a_matsuda
7
590
AWS×クラウドネイティブソフトウェア設計 / AWS x Cloud-Native Software Design
nrslib
11
2.6k
CSC307 Lecture 15
javiergs
PRO
0
230
モジュラモノリスにおける境界をGoのinternalパッケージで守る
magavel
0
3.5k
「やめとこ」がなくなった — 1月にZennを始めて22本書いた AI共創開発のリアル
atani14
0
360
Featured
See All Featured
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
360
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Test your architecture with Archunit
thirion
1
2.2k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
68
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
980
How to Ace a Technical Interview
jacobian
281
24k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
1
1.3k
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