1
0
Fork 0

Quick runthrough of updates

This commit is contained in:
Andrew Tomaka 2016-03-08 21:32:57 -05:00
parent a16346c087
commit 26af951e1f
15 changed files with 25 additions and 15 deletions

View file

@ -8,5 +8,4 @@ bundle exec rake db:migrate
``` ```
note: note:
Put your speaker notes here. - source: https://github.com/atomaka/jokes-rails
You can see them pressing 's'.

View file

@ -10,5 +10,5 @@
* Choose a hostname * Choose a hostname
note: note:
Put your speaker notes here. - create A record after if you want it to be permanant or add a hosts entry
You can see them pressing 's'. to /etc/hosts to make it easier to find for yourself

View file

@ -5,3 +5,5 @@
* script that completes tasks * script that completes tasks
note: note:
- Hooks run based on events in git. Many others are useful like pre-commit for
running linters

View file

@ -7,6 +7,7 @@
git clone https://github.com/rbenv/rbenv.git ~/.rbenv git clone https://github.com/rbenv/rbenv.git ~/.rbenv
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile source ~/.bash_profile
``` ```
@ -19,3 +20,4 @@ gem install bundler
``` ```
note: note:
- rbenv vs rvm vs chruby: pick whichever you want

View file

@ -16,5 +16,6 @@
"run-a-web-server.md", "run-a-web-server.md",
"time-for-the-special-sauce.md", "time-for-the-special-sauce.md",
"setup-git-remote.md", "setup-git-remote.md",
"viola.md",
"resources.md" "resources.md"
] ]

View file

@ -18,3 +18,4 @@ chsh app -s /bin/bash
``` ```
note: note:
- Packages can be found by Gooleing for ubuntu ruby rails packages

View file

@ -16,3 +16,4 @@ gem 'therubyracer', platforms: :ruby
``` ```
note: note:
- Or use nodejs

View file

@ -1,7 +1,9 @@
## Resources ## Resources
* [These slides](https://github.com/atomaka/deploying-rails-app) * This presentation
* [Slides](https://github.com/atomaka/deploying-rails-app)
* [Sample application](https://github.com/atomaka/jokes-rails) * [Sample application](https://github.com/atomaka/jokes-rails)
* [Configuration gist](https://gist.github.com/atomaka/d104019ffe3aa35bcd39) * [Configuration gist](https://gist.github.com/atomaka/d104019ffe3aa35bcd39)
* [How To Deploy a Rails App with Git Hooks on Ubuntu](https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-git-hooks-on-ubuntu-14-04?utm_content=bufferacb29&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer)
note: note:

View file

@ -10,5 +10,3 @@ apt-get install nginx
* default from [https://goo.gl/f36vHg](https://goo.gl/f36vHg) * default from [https://goo.gl/f36vHg](https://goo.gl/f36vHg)
note: note:
Put your speaker notes here.
You can see them pressing 's'.

View file

@ -13,5 +13,3 @@ sudo cp puma.conf puma-manager.conf /etc/init
``` ```
note: note:
Put your speaker notes here.
You can see them pressing 's'.

View file

@ -21,3 +21,5 @@ export SECRET_KEY_BASE="YOUR_SECRET_KEY_HERE"
``` ```
note: note:
- Key can be generated with rake:
- bundle exec secret

View file

@ -13,5 +13,3 @@ end
note: note:
Put your speaker notes here.
You can see them pressing 's'.

View file

@ -20,4 +20,6 @@ sudo sh -c 'echo "app ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-app'
note: note:
- What github does when you create a new repository - What github does when you create a new repository
- Probably should restrict sudo - Should definitely restrict sudo. Just add commands necessary after.
- service puma-manager restart
- service nginx restart

1
slides/viola.md Normal file
View file

@ -0,0 +1 @@
# Viola!

View file

@ -7,3 +7,6 @@ A service for deploying applications
* `git push heroku master` * `git push heroku master`
note: note:
- Heroku is a little pricey
- Heroku is not as flexible
- Heroku IS less complicated