mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
moved shared readme parts under doc directory
This commit is contained in:
parent
4f10cccdfa
commit
05acedb4d5
3 changed files with 120 additions and 82 deletions
70
doc/application_build_doc.md
Normal file
70
doc/application_build_doc.md
Normal file
|
@ -0,0 +1,70 @@
|
|||
### Application build and update
|
||||
|
||||
For application deployment we are using faster [Mina](https://github.com/mina-deploy/mina)
|
||||
instead of Capistrano.
|
||||
|
||||
All deploy code locates at config/deploy.rb file.
|
||||
|
||||
First add shortcuts to your local machine ssh config file,
|
||||
|
||||
```
|
||||
~/.ssh/config file:
|
||||
# staging
|
||||
Host registry-st
|
||||
HostName YOUR-REGISTRY-STAGING-SERVER-IP
|
||||
User registry
|
||||
|
||||
# production
|
||||
Host registry
|
||||
HostName YOUR-REGISTRY-SERVER-IP
|
||||
User registry
|
||||
|
||||
# staging
|
||||
Host eppweb-st
|
||||
HostName YOUR-EPPWEB-STAGING-SERVER-IP
|
||||
User registry
|
||||
|
||||
# production
|
||||
Host eppweb
|
||||
HostName YOUR-EPPWEB-SERVER-IP
|
||||
User registry
|
||||
|
||||
# staging
|
||||
Host whois-st
|
||||
HostName YOUR-WHOIS-STAGING-SERVER-IP
|
||||
User registry
|
||||
|
||||
# production
|
||||
Host whois
|
||||
HostName YOUR-WHOIS-SERVER-IP
|
||||
User registry
|
||||
```
|
||||
|
||||
Those shortcuts should be same as in config/deploy.rb script,
|
||||
otherwise mina will not deploy.
|
||||
|
||||
Mina help and all mina commands:
|
||||
|
||||
mina -h
|
||||
mina -T
|
||||
|
||||
Setup application directories for a new server:
|
||||
|
||||
mina setup # staging
|
||||
mina pr setup # production
|
||||
|
||||
Deploy new code:
|
||||
|
||||
mina deploy # staging
|
||||
mina pr deploy # production
|
||||
|
||||
Rollback to previous release:
|
||||
|
||||
mina rollback # staging
|
||||
mina pr rollback # production
|
||||
|
||||
General rake and mina tips:
|
||||
|
||||
rake -T # list all rake commands
|
||||
rake -T db # list all database related commands
|
||||
mina -T # list all mina deploy commands
|
Loading…
Add table
Add a link
Reference in a new issue