When that happened, the sailors became greatly awed at/respected Yahweh's power. So, they offered a sacrifice to Yahweh. They also vowed to him that they would do things that would please him.