1kings10

Don’t let God’s blessings become an idol. God actually blesses Solomon with wealth and fame along with wisdom.

Like Paul said it’s not how you started the race but how well you finish.

Only he must not acquire many horses for himself or cause the people to return to Egypt in order to acquire many horses, since the Lord has said to you, ‘You shall never return that way again.’ And he shall not acquire many wives for himself, lest his heart turn away, nor shall he acquire for himself excessive silver and gold.
Deuteronomy 17:16‭-‬17 ESV
http://bible.com/59/deu.17.16-17.ESV

Advertisements

1kings8-9

Where is God’s presence in our life? Your temple can be very grand but only God knows what is inside.

Do you not know that you are God’s temple and that God’s Spirit dwells in you?
1 Corinthians 3:16 ESV
http://bible.com/59/1co.3.16.ESV

Do you know the lineage of Christ Jesus?

Why is it so difficult to trust and obey God? It is hard to deny yourself. To not have control. Is it our pride?

But to all who did receive him, who believed in his name, he gave the right to become children of God,
John 1:12 ESV
http://bible.com/59/jhn.1.12.ESV

Chapter 9

God desires your obedience.

1kings5-6

We can see the temple take many forms throughout the Bible.

Garden of Eden

The Tabernacle

Juresalem temple

Emmanuel – Christ with us.

The church

Or do you not know that your body is a temple of the Holy Spirit within you, whom you have from God? You are not your own,
1 Corinthians 6:19 ESV
http://bible.com/59/1co.6.19.ESV

And I saw no temple in the city, for its temple is the Lord God the Almighty and the Lamb.
Revelation 21:22 ESV
http://bible.com/59/rev.21.22.ESV

“Concerning this house that you are building, if you will walk in my statutes and obey my rules and keep all my commandments and walk in them, then I will establish my word with you, which I spoke to David your father.
1 Kings 6:12 ESV
http://bible.com/59/1ki.6.12.ESV

1Kings3-4

Took place during the first 4 years of his reign.

He grew up with a golden spoon.

Solomon’s downfall was his success. He trusted in God’s gift.

Vv1 why start with this marriage. Was it political strategy? His father was the conquerer. King David known as a Goldy king. Solomon was a wise king.

Vv3 high places were only condemned after the temple was built. The stigma is there.

Vv26 interesting that there was no judgement mentioned. Was Solomon merciful.

Job13 pt2

Why do you complain about this world?

Now if Christ is proclaimed as raised from the dead, how can some of you say that there is no resurrection of the dead? But if there is no resurrection of the dead, then not even Christ has been raised. And if Christ has not been raised, then our preaching is in vain and your faith is in vain. We are even found to be misrepresenting God, because we testified about God that he raised Christ, whom he did not raise if it is true that the dead are not raised. For if the dead are not raised, not even Christ has been raised. And if Christ has not been raised, your faith is futile and you are still in your sins. Then those also who have fallen asleep in Christ have perished. If in Christ we have hope in this life only, we are of all people most to be pitied.
1 Corinthians 15:12‭-‬19 ESV
http://bible.com/59/1co.15.12-19.ESV

Laravel in docker

docker-compose.yml

Install Laravel

If you have a repo ready then clone it into a directory called laravel.

If you want a fresh install then skip to the next step.

.env

Make sure your db name is the same in your docker-compose.yml

Node

npm install
Do this now so the docker image can read the volume.

docker up

docker-compose up
Along with mariadb, laravel and phpmyadmin; I think composer install gets run.

Database

Go to your phpmyadmin image and upload it.

Notes

  • Turn your localhost webserver off (e.g. apachectl).
  • docker-compose down -v will delete the volumes and allow you to try again with a clean install.

Elastic beanstalk Laravel

Amazon account

Create a new IAM user access_id and secret_key.

Elastic beanstalk CLI

Please install:
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install.html?icmpid=docs_elasticbeanstalk_console

App repo

Clone your repo into a new directory and go to it.

Fire up a new EB instance

$ eb init
If you have multiple profiles in your ~/.aws/config
$ eb init --profile name

Deploy to staging

For the initial deployment.
This is going to fail because we haven’t uploaded our configs.
We want classic deployment.
$ eb create environment_name --database

Run on deployment

Add these to your project before you deploy:
https://github.com/jianliyow/elasticbeanstalk-laravelconfigs

$ eb deploy

App config

Set the APP_URL in configuration > software configuration.
e.g. http://localhost or https://staging.example.com

Database config

We don’t need to do anything here because database.pro reads the server variables.

S3 bucket config

https://jianliyow.wordpress.com/2017/08/23/aws-s3-bucket-policy-and-iam-policy/

Production environment

Clone the staging environment in AWS console. Initially it will fail. 

Database config

  • Allow office IP 
  • Copy the data over to the new DB

Route 53

https://console.aws.amazon.com/route53/home?region=ap-southeast-1
Create a hosted zone.
Point domain name to AWS name servers.
Create aliases.

Create SSL cert

https://ap-southeast-1.console.aws.amazon.com/acm/home?region=ap-southeast-1#/

Redirect to https

Include the redirect code in .ebextensions/01setup.config

Turn to me and be saved pt3

Isa52:13-53:12

How can God remain just and yet justify wicked sinners?

Who is a God like you, pardoning iniquity and passing over transgression for the remnant of his inheritance? He does not retain his anger forever, because he delights in steadfast love. He will again have compassion on us; he will tread our iniquities underfoot. You will cast all our sins into the depths of the sea.
Micah 7:18‭-‬19 ESV
http://bible.com/59/mic.7.18-19.ESV

Turn to me and be saved pt1

We do not fear the unknown, we fear the judgment of God.

Heb9:27

Isa 1:18 come let us settle this.

If you are willing and obedient, you shall eat the good of the land; but if you refuse and rebel, you shall be eaten by the sword; for the mouth of the Lord has spoken.”
Isaiah 1:19‭-‬20 ESV
http://bible.com/59/isa.1.19-20.ESV

let the wicked forsake his way, and the unrighteous man his thoughts; let him return to the Lord , that he may have compassion on him, and to our God, for he will abundantly pardon.
Isaiah 55:7 ESV
http://bible.com/59/isa.55.7.ESV

Job12 & 13:19

Job rebuts Zophar.

Vv11-13 Young man, wisdom comes from obedience to God’s word not knowledge. Psalm 119.

The fear of the Lord is the beginning of wisdom; all those who practice it have a good understanding. His praise endures forever!
Psalms 111:10 ESV
http://bible.com/59/psa.111.10.ESV

Godly vs worldly wisdom

But the wisdom from above is first pure, then peaceable, gentle, open to reason, full of mercy and good fruits, impartial and sincere.
James 3:17 ESV
http://bible.com/59/jas.3.17.ESV

Vv17-25 rymes and reversals.

Suffering makes you ask the bigger questions.

No need to defend God. Defend the hope that is in you. Just simply proclaim what He said about Himself.

Will it be well with you when he searches you out? Or can you deceive him, as one deceives a man?
Job 13:9 ESV
http://bible.com/59/job.13.9.ESV