We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON 을 확장한 템플릿 언어
{ corp1: { name: "NAVER", welcome: "Welcome to " + self.name + " Corp", }, corp2: self.corp1 { name: "COUPANG" }, }
{ "corp1": { "name": "NAVER", "welcome": "Welcome to NAVER Corp" }, "corp2": { "name": "COUPANG", "welcome": "Welcome to COUPANG Corp" } }
local Corp(name='NAVER') = { name: name, welcome: 'Welcome to ' + name + ' Corp', }; { corp1: Corp(), corp2: Corp('COUPANG'), }
local application = 'my-app'; local module = 'uwsgi_module'; local dir = '/var/www'; local permission = 644; { 'uwsgi.ini': std.manifestIni({ sections: { uwsgi: { module: module, pythonpath: dir, socket: dir + '/uwsgi.sock', 'chmod-socket': permission, callable: application, logto: '/var/log/uwsgi/uwsgi.log', }, }, }), 'init.sh': ||| #!/usr/bin/env bash mkdir -p %(dir)s touch %(dir)s/initialized chmod %(perm)d %(dir)s/initialized ||| % {dir: dir, perm: permission}, 'cassandra.conf': std.manifestYamlDoc({ cluster_name: application, seed_provider: [ { class_name: 'SimpleSeedProvider', parameters: [{ seeds: '127.0.0.1' }], }, ], }), }
uwsgi.ini
[uwsgi] callable = my-app chmod-socket = 644 logto = /var/log/uwsgi/uwsgi.log module = uwsgi_module pythonpath = /var/www socket = /var/www/uwsgi.sock
init.sh
#!/usr/bin/env bash mkdir -p /var/www touch /var/www/initialized chmod 644 /var/www/initialized
cassandra.conf
"cluster_name": "my-app" "seed_provider": - "class_name": "SimpleSeedProvider" "parameters": - "seeds": "127.0.0.1"
The text was updated successfully, but these errors were encountered:
occidere
No branches or pull requests
Jsonnet 이란?
JSON 을 확장한 템플릿 언어
1. 객체지향적인 방식으로 중복 제거
input.jsonnet
output.json
2. 함수 사용하기
input.jsonnet
output.json
3. 기존 어플리케이션 및 커스텀 어플리케이션과 통합
input.jsonnet
uwsgi.ini
init.sh
#!/usr/bin/env bash mkdir -p /var/www touch /var/www/initialized chmod 644 /var/www/initialized
cassandra.conf
참고
The text was updated successfully, but these errors were encountered: