Abraham’s obedience

Genesis 12. Hebrews 11. The obedience of faith. Prompt. Practical. Progressive. Peculiar. Productive.

Wisdom. Stature and in favor with man and God. Plan ahead 1,5 and 10 years ahead and then submit it to God. God must come first.

And being found in human form, he humbled himself by becoming obedient to the point of death, even death on a cross.
Philippians 2:8 ESV
http://bible.com/59/php.2.8.ESV

Advertisements

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

Why cannot buy chariots and horses from Egypt? The Jews saw them in slavery and going to them is putting your trust back in man.

Solomon had wisdom but he did not obey.

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 files 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

Configuration > Load balancing > Protocol & SSL Certificate ID

Uncomment https redirect in .ebextensions/01setup.config

Install https-enforcement:

composer require owenmelbz/https-enforcement

* 3- Apparently you don’t need to include this in your .env

Add this condition to your AppServiceProvider boot method.