@christoomey
Hey Chris or anyone,
4 challenges so far, 4 resolved, YAY.
Challenge 1 (resolved)
Never used bourbon or neat prior to following this tutorial, ie none of the gems installed anywhere. I ran into an issue with @import grid-settings
. Basically it said it could not import grid-settings
. I donāt know if this is true or not, but it appears that grid-settings
relies upon bitters
. When I added gem bitters
to my Gemfile it resolved the error. However, I then got a global variable $golden.
missing error. When I bumped @import grid-settings
below my @import bourbon
that error was also resolved. But my grid system is still not functional. Iām struggling to understand how you get a 3 column grid output on locations when you have the line @include span-columns(4)
. That to me says a 4 column grid. I must be missing something.
^^^ Iāve resolved Challenge 1
Challenge 1 Fix
I changed the unworking grid system by changingā¦
&:nth-child(3n) {
@include omega;
}
to
@include omega(3n);
Challenge 2 (resolved)
Another question about the bash script. So in the directory with all my files I ran the following commands
$ mkdir bin
$ vim bin/deploy
then within there I copied and pasted the following code
#!/bin/sh
set -e
bundle exec middleman build --clean
bundle exec middleman s3_sync
I then ran your command
$ bin/deploy
=> -bash: bin/deploy: Permission denied
$ sudo bin/deploy
=> sudo: bin/deploy: command not found
$ cat bin/deploy
=>
#!/bin/sh
set -e
bundle exec middleman build --clean
bundle exec middleman s3_sync
Iām stumped as usual.
Solution to Challenge 2
from the root directory of the project
run $ chmod +x bin/deploy
That will give your bash command executable rights which allows you to run it like a boss.
Challenge 3 (resolved)
Iām getting an error when deploying to S3. Since I canāt get the bin script to work, I just ran it manually. The first command works fine, but the 2nd one not so much.
$ bundle exec middleman s3_sync
=> You need to activate the s3_sync extension and at least provide the bucket name.
Iām assuming itās mad about my config.rb
file. So I popped that sucka open and I hadā¦
activate :s3_sync
And I thought hmm, they donāt know the bucket. So many I should add more stuff to make the programming lords happy.
activate :s3_sync do |s3_sync|
s3_sync.bucket = ENV['AWS_BUCKET']
s3_sync.aws_access_key_id = ENV['AWS_ACCESS_KEY_ID']
s3_sync.aws_secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
end
Same error, turns out the programming gods are hard to please.
Challenge 3 FIX ā change .sample.env
to .env
Challenge 4 (resolved)
Since the release of this video fog-core
came out with a new version v1.35.0. That update blows up s3_sync.
$ bundle exec middleman s3_sync
s3_sync Let's see if there's work to be done...
s3_sync Ready to apply updates to fuckaws.
s3_sync Creating index.html
/Users/theDanOtto/.rvm/gems/ruby-2.1.2/gems/fog-core-1.35.0/lib/fog/storage.rb:68:in `get_content_type': uninitialized constant Fog::Storage::MIME (NameError)
fix it by adding
gem "fog-core", "1.34.0"
to your Gemfile. Then running $ bundle update fog-core