Install the Rails gem if you haven't done so before
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Amazon ECS | |
on: | |
push: | |
branches: | |
- main | |
env: | |
ECS_CLUSTER: ${{ secrets.ECS_CLUSTER }} | |
ECS_SERVICE: ${{ secrets.ECS_SERVICE }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Amazon ECS | |
on: | |
push: | |
branches: | |
- main | |
env: | |
ECS_CLUSTER: ${{ secrets.ECS_CLUSTER }} | |
ECS_SERVICE: ${{ secrets.ECS_SERVICE }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yum update -y | |
yum install -y httpd | |
instanceId=$(curl http://169.254.169.254/latest/meta-data/instance-id) | |
echo "<h1>Hello World from $instanceId</h1>" > /var/www/html/index.html | |
systemctl start httpd | |
systemctl enable httpd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"body": { | |
"key": { | |
"eldest_kid": "0120f7cb5ae5977ab8023cb27415c7f242e0d1ca3c627f1d2f365c27d7cd6cb2c7cb0a", | |
"host": "keybase.io", | |
"kid": "0120f7cb5ae5977ab8023cb27415c7f242e0d1ca3c627f1d2f365c27d7cd6cb2c7cb0a", | |
"uid": "92dd8c78b39d1ac841135be28fa76419", | |
"username": "huynhbathanh" | |
}, | |
"merkle_root": { |
Current [-]. Completed [X]
Learn a variety of commonly-used programming languages:
- [] Write a program in Ruby
- [] Write a program in Python
- [] Write a program in C
- [] Write a program in C++
- [] Write a program in Java
- [] Write a program in Objective-C
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Cách 1: Sử dụng EsHelper để build query | |
*/ | |
$esHelper = new EsHelper(); | |
$term = $esHelper->createTerm('company_id', -1); | |
$boolQuery = $esHelper->createBoolQuery(); | |
$boolQuery->addMust($term); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gsviecweb git:(trunk) ✗ docker-compose up --force-recreate | |
Creating network "gsviecweb_default" with the default driver | |
Creating gsviecweb_redis-master_1 ... done | |
Creating gsviecweb_db_1 ... done | |
Creating gsviecweb_php_1 ... done | |
Creating gsviecweb_phpmyadmin_1 ... done | |
Attaching to gsviecweb_redis-master_1, gsviecweb_db_1, gsviecweb_phpmyadmin_1, gsviecweb_php_1 | |
redis-master_1 | 1:C 20 Oct 2019 07:13:50.706 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo | |
redis-master_1 | 1:C 20 Oct 2019 07:13:50.706 # Redis version=5.0.6, bits=64, commit=00000000, modified=0, pid=1, just started | |
redis-master_1 | 1:C 20 Oct 2019 07:13:50.706 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ gsviecweb git:(trunk) docker-compose up | |
Creating network "gsviecweb_default" with the default driver | |
Creating gsviecweb_db_1 ... done | |
Creating gsviecweb_redis_1 ... done | |
Creating gsviecweb_phpmyadmin_1 ... done | |
Creating gsviecweb_php_1 ... done | |
Attaching to gsviecweb_db_1, gsviecweb_redis_1, gsviecweb_phpmyadmin_1, gsviecweb_php_1 | |
db_1 | 2019-10-20 07:09:42+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.28-1debian9 started. | |
redis_1 | 1:C 20 Oct 2019 07:09:42.502 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo | |
redis_1 | 1:C 20 Oct 2019 07:09:42.502 # Redis version=5.0.6, bits=64, commit=00000000, modified=0, pid=1, just started |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ gsviecweb git:(trunk) ✗ docker-compose up --build --force-recreate | |
WARNING: Found orphan containers (gsviecweb_redis-master_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. | |
Recreating gsviecweb_redis_1 ... done | |
Recreating gsviecweb_db_1 ... done | |
Recreating gsviecweb_phpmyadmin_1 ... done | |
Recreating gsviecweb_php_1 ... done | |
Attaching to gsviecweb_redis_1, gsviecweb_db_1, gsviecweb_php_1, gsviecweb_phpmyadmin_1 | |
redis_1 | 1:C 20 Oct 2019 01:43:03.591 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo | |
redis_1 | 1:C 20 Oct 2019 01:43:03.591 # Redis version=5.0.6, bits=64, commit=00000000, modified=0, pid=1, just started | |
redis_1 | 1:C 20 Oct 2019 01:43:03.591 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf |
NewerOlder