hassmo2019 / beego-tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

beego-tutorial

STEP0

Install Homebrew and run following commands:

# install docker
brew install docker
brew cask install docker
open /Applications/Docker.app

# install cocker-compose
brew install docker-compose

STEP1

Build and start containers.

docker-compose up -d

STEP2

Create a new application.

docker-compose exec app bash
bee new quickstart
# Enter "yes" to overwrite.
exit
# load created application
docker-compose restart

Access http://localhost:8080 and check running application.

STEP4

Deploy to AWS Elastic Beanstalk.

Make source bundle

./make_bundle.sh

Above command output a bundle.zip file. This process means create an application source bundle.

Create environment

Refer to an AWS document. Select following options:

  • Platform : Docker
  • Application code : Upload your code
    • Source code origin : Local File (and select bundle.zip file)

STEP3

Refer to the document and implement the contents of the quick start.
After making changes to the source code, check changes on the local environment and redeploy to Elastic Beanstalk. If you want to see the log of local environment, please execute the following command:

docker-compose logs -f

About


Languages

Language:Dockerfile 79.3%Language:Shell 20.7%