Skip to content
Nikolay Rys edited this page Aug 5, 2018 · 21 revisions

Node management

bundle exec cap deploy
ssh webmaster@rys.me
  • Webserver management: sudo systemctl <command> <service>
  • services: nginx, backend
  • commands: start/stop/restart/reload

Build on compile time

bundle install
npm install
npm run-script build

Startup

bin/console           # Console
bin/server            # Backend
npm run-script start  # Frontend

Memory leak provisionary

sudo nano /etc/systemd/journald.conf # Storage=none
sudo systemctl restart systemd-journald

Local setup

nano ~/.zshrc
     ssh-add ~/.ssh/id_rsa &>/dev/null
rvm rvmrc warning ignore allGemfiles

Dependencies: NPM, RVM, Ruby, Bundler