Activity
Hey Chris Oliver any tips for doing this when running multiple domains on one server or having subdomains. ie example..com and foo.example.com. I have two server blocks for nginx but they are trying to share the same certificate so chrome throws an error around security.
holy shit it works!
I also added `30 2 * * 1 letsencrypt renew` to my cronjobs as I have letsencrypt installed
Or in my case as I am running passenger `sudo nano /etc/nginx/sites-enabled/default`
I followed these steps and found that `sudo apt-get install letsencrypt` got me up and running. No need to install from github source. https://certbot.eff.org/#ub...
@excid3:disqus what do you mean by `Add the following lines to your server block for your app and be sure to change example.com to your domain.`
Where do I find the `server block`? Is this the `/etc/nginx/nginx.conf` file `server { }`
Getting the following error after running `./letsencrypt-auto`
`Failed to install a working "virtualenv" command, exiting`
Fixed this as per this SO page. http://stackoverflow.com/qu...
Also getting an error `There are no Phusion Passenger-served applications running whose paths begin with '/home/deploy/app_name'`. app_name is replaced with the name of my app.
Seems there is another user getting this problem as well.
http://stackoverflow.com/qu...
Almost there but when I run `cap production deploy` I get
```
00:00 rbenv:validate
rbenv: 2.3.1 is not installed or not found in $HOME/deploy/.rbenv/versions/2.3.1
```
Is cap checking this on my local machine or the server? I have changed the path to just `$HOME/.rbenv` and still get the same issue.
Posted in Testing your markdown
Oh wow I didn't realize it wasn't official.
I do have the gfm: true
on. I might have to dig a little deeper on this one then. Will let you know how I go.
I have had a read of the issues and appears that the html-pipeline gem is not yet compatible with Rails5 so I'll probably have to wait a bit more.
Posted in Testing your markdown
I see your markdown tables aren't being rendered as tables. I have the same problem :( Any idea how we get this fixed?
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
I am using the html-pipeline gem and followed the guides in your cast.
Hmm this might be an issue with rails -v 5.0.0beta4
I am getting an error:
uninitialized constant HTML::Pipeline::SyntaxHighlightFilter::Pygments
.
my Gemfile shows:
# markdown in comments
gem 'html-pipeline', '~> 1.11.0'
gem 'github-linguist', '~> 4.8', '>= 4.8.4'
gem 'github-markdown', '~> 0.6.7'
gem 'gemoji', '~> 2.1.0'
gem 'sanitize', '~> 3.0.3'
and in application_helper.rb
I have:
def markdown(content)
pipeline_context = {gfm: true, asset_root: "https://a248.e.akamai.net/asse..."}
pipeline = HTML::Pipeline.new [
HTML::Pipeline::MarkdownFilter,
HTML::Pipeline::EmojiFilter,
HTML::Pipeline::SanitizationFilter,
HTML::Pipeline::SyntaxHighlightFilter
], pipeline_context
pipeline.call(content)[:output].to_s.html_safe
end
If I add
gem 'pygments.rb', '~> 0.6.3'
to my Gemfile I can get it going but I thought pygments was a dependency of github-linguist
.
Also the html syntax highlighting doesn't even seem to work when it is up and running. Is there a place where I can set the highlighting theme??
@excid3:disqus this was confusing for me as well. MIght need to add another alert box to say when you should jump back to your local machine.
Should there have been a step in this tutorial to install Rails on the server? Say around the area where Bundler is installed? Or did you pick an image that had Rails included?
Posted in Pretty urls with FriendlyID Discussion
A great introduction to friendly ids! Worked perfectly even on Rails5.0.0beta3
I really appreciate being able to watch the process you go through. The hardest part I have found in learning rails is incorporating TDD/BDD and I was happy to see you step through that with each of your features.
Very jealous by the way that you have all this time to learn it all as part of your studies. I'm self taught so have to fit everything in between my day job and social life. CS students must have very high pass rates to be able to work on such rewarding projects :)
Sorry for the questions, not really helping with your problem but just curious about the journey you've been on.
Ken what were you doing before you started learning Rails? This site packs some massive features. You must be dedicating a lot of time to learn so much so quickly :)
I was writing some code last night and saw your post just before I was about to go to bed. Ended up watching your videos for another hour hah.
I hadn't run the line `vagrant plugin install vagrant-librarian-chef-nochef`. I have done that although now Chef installation takes so long I stopped it. 1hr + so I don't think that classifies for 'This can take a while.`