- Install PostgreSQL.
- Install
rbenv. - Install
nodenv. - Set the
EDITORenvironment variable (nano,vim,mcedit, etc.). - Clone this repository and checkout to directory.
- Run
exe/setup.shto install Ruby (with gems), Node.js (with modules) and fill configs. - Run
toys db create_userto create database user. - Run
toys db createto create database. - Run
toys db migrateto run database migrations.
- Tune PostgreSQL (via pgtune, for example).
- Set correct timezone.
- Install
traceroute(ortraceroute6) for debug information in network errors reports. - Add UNIX-user for project:
adduser stream_timer. - Install and configure
nginx(with symbolic links fromconfig/nginx). - Make symbolic link of project directory to
/var/www/stream_timer(Debian),/usr/share/nginx/stream_timer(Fedora) or something else, and change the root innginxconfig. to something like/home/stream_timer/stream_timer. - Install Certbot and generate certificates.
- Optional
openssl dhparam -out /etc/ssl/certs/dhparam.pem 4096.
- Optional
- Copy
config/systemd.serviceto the~/.config/systemd/user/directory and enable it.- Don't forget to enable user services after logout:
loginctl enable-linger stream_timer.
- Don't forget to enable user services after logout:
For management server state use toys server command.
Realized with pry:
toys console(All models and other classes are available)
toys psql(For login as postgres user use sudo su - postgres)
toys db migrations new migration_nametoys db migrations
# toys db migrations listTo latest:
toys db migrate
# toys db migrations runTo specific version (forward or backward):
toys db migrate --target=part_of_target_migration_name_or_versionN is a number of migrations to rollback relatively to the latest existing.
toys db migrations rollback Nexe/update.shIt will update default (or specified as first argument) branch, update bundle, stop server, run migrations and start server.
toys deployIt will run exe/update.sh command remotely
through ssh connection from deploy.yaml configuration file.
- Go to IcoMoon App
- Upload project
- Click
Manage Projectsbutton - Click
Import Projectbutton - Upload
assets/icomoon/selection.jsonfile - Click
Loadbutton
- Click
- Modify the set of icons
- Enter keyword (like
carorman) into search field - Select desired icons
- Enter keyword (like
- Update icons
- Click
Generate SVG & Morebutton - Check names and other settings
- Click
Downloadbutton - Run
toys icomoon extract %path_to_downloaded_archive%
- Click
- Repeat these steps with the final
assets/icomoon/selection.jsonfile, because of there is a difference (insetIdxandiconIdxfields) between originalselection.jsonfile with freshly added icons and generatedselection.jsonfile with the same icons.