π
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 | |
BUCKET_NAME=staging.acb.com | |
BUCKET_PATH="gs://${BUCKET_NAME}" | |
gsutil mb -l asia-east2 $BUCKET_PATH | |
gsutil iam ch allUsers:objectViewer $BUCKET_PATH | |
gsutil web set -m index.html -e index.html $BUCKET_PATH |
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
syntax on | |
set number | |
set list | |
set listchars=tab:β\ ,space:Β·,nbsp:β£,trail:β’,eol:ΒΆ,precedes:Β«,extends:Β» |
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
version: '3' | |
services: | |
api: | |
build: . | |
restart: always | |
command: npm start | |
volumes: | |
- '.:/usr/src/app' | |
- /usr/src/app/node_modules/ # --ingore node_modules folder | |
ports: |
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
{"lastUpload":"2019-06-01T17:43:02.604Z","extensionVersion":"v3.2.9"} |
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
version: '3' | |
services: | |
mongodb: | |
image: mongo:3.6-stretch | |
container_name: "mongodb" | |
environment: | |
- MONGO_DATA_DIR=/data/db | |
- MONGO_LOG_DIR=/dev/null | |
volumes: | |
- ~/.docker-volumes/lime-be/mongodb/data/db:/data/db |
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
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# https://www.nginx.com/resources/wiki/start/ | |
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/ | |
# https://wiki.debian.org/Nginx/DirectoryStructure | |
# | |
# In most cases, administrators will remove this file from sites-enabled/ and | |
# leave it as reference inside of sites-available where it will continue to be | |
# updated by the nginx packaging team. |
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
const { createLogger, format, transports } = require('winston'); | |
const { combine, timestamp, printf, colorize, splat } = format; | |
const myFormat = printf((info) => { | |
if (info.meta && info.meta instanceof Error) { | |
return `${info.timestamp} ${info.level} ${info.message} : ${info.meta.stack}`; | |
}else if(info.stack){ | |
return `${info.timestamp} ${info.level} ${info.message} : ${info.stack}`; | |
} | |
return `${info.timestamp} ${info.level}: ${info.message}`; |
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
############################################### | |
## overrides deployment configuration mode value | |
## use command bin/magento deploy:mode:set to switch modes | |
# SetEnv MAGE_MODE developer | |
############################################ | |
## uncomment these lines for CGI mode | |
## make sure to specify the correct cgi php binary file name | |
## it might be /cgi-bin/php-cgi |
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
# To to active profile you need to add the environment variable | |
mvn spring-boot:run -Dspring.profiles.active=production | |
# Or add a parameter to start application command | |
java -jar target/your_packaged.jar -Dspring.profiles.active=production |
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
@SpringBootApplication | |
@EnablePrometheusEndpoint | |
public class Application { | |
private static final String BOOTSTRAP_PATH = | |
"/data/project/project-code/config/bootstrap.yml"; | |
public static void main(String[] args) { | |
loadBootstrapConfiguration(); | |
SpringApplication.run(Application.class, args); | |
} |