- Get some help:
iex> i 'hello'
Term
| ад | |
| ар | |
| ер | |
| ил | |
| ом | |
| ум | |
| ус | |
| юг | |
| юр | |
| ют |
iex> i 'hello'
Term
| mix help | |
| iex -S mix phx.server # like rails c | |
| h Enum => shows help for Enum | |
| Dossy.Accounts.__info__(:functions) => will list functions in this module | |
| mix phx.routes | |
| # DATABASE | |
| mix ecto.gen.migration add_weather_table | |
| mix ecto.migrate |
This exemplary initial setup uses two devices /dev/sdb and /dev/sdc but can be applied to any amount of devices by following the steps with additional devices.
Create keyfile:
dd bs=64 count=1 if=/dev/urandom of=/etc/cryptkey iflag=fullblock
chmod 600 /etc/cryptkeyIn some cases, it is possible that PostgreSQL tables get corrupted. This can happen in case of hardware failures (e.g. hard disk drives with write-back cache enabled, RAID controllers with faulty/worn out battery backup, etc.), as clearly reported in this wiki page. Furthermore, it can happen in case of incorrect setup, as well.
One of the symptoms of such corruptions is the following message:
ERROR: missing chunk number 0 for toast value 123456 in pg_toast_45678
This almost surely indicates that a corrupted chunk is present within a table file. But there is a good way to get rid of it.
Для начала работы необходимо зарегистрироваться в сервисе Yandex Cloud
Создать платежный аккаунт. (После привязки карты начисляются демо-средства на 60 дней пробного периода).
| /** | |
| * Module dependencies. | |
| */ | |
| var express = require('express'); | |
| var rpcMethods = require('./methods.js'); | |
| var app = module.exports = express.createServer(); | |
| // Configuration |
code: https://github.com/zmts/supra-api-nodejs
Одной из болезней Node.js комьюнити это отсутствие каких либо крупных фреймворков, действительно крупных уровня Symphony/Django/RoR/Spring. Что является причиной все ещё достаточно юного возраста данной технологии. И каждый кузнец кует как умеет ну или как в интернетах посоветовали. Собственно это моя попытка выковать некий свой подход к построению Node.js приложений.