Вам просто нужно установить фоновое положение заголовка изображения. Для этого вы можете добавить атрибут background-position
в правило класса header.masthead
header.masthead {
background-position: center top;
}
ИЛИ
Вы можете изменить фоновое обозначение на:
header.masthead {
background: url("../IMG_4126.jpg") no-repeat center top;
}
Помощь в командной строке для сценария / бегуна дает вам ответ.
script/runner -e production Model.method
Если вы переделаете свой скрипт следующим образом:
#!/bin/bash
RAILS_ENV=production
/usr/bin/ruby ../script/runner ../lib/tasks.rb
... это сохранит его на весь срок действия сценария. Чтобы он оставался неизменным на время жизни сеанса оболочки, измените его на
#!/bin/bash
export RAILS_ENV=production
/usr/bin/ruby ../script/runner ../lib/tasks.rb
Вы можете установить переменную среды следующим образом:
RAILS_ENV=production /usr/bin/ruby ../script/runner ../lib/tasks.rb
If that's your command, the order of your arguments is your biggest problem.
/usr/bin/ruby RAILS_ENV=production ../script/runner ../lib/tasks.rb
Is different than.
/usr/bin/ruby ../script/runner ../lib/tasks.rb RAILS_ENV=production
The second example is looking for the file, the first one is setting a runtime variable while ruby interpreting it as the file you want to run.