|
|
|
@@ -1,2 +1,20 @@ |
|
|
|
# Deployments_to_Ubuntu |
|
|
|
## Vapor app deployment |
|
|
|
Step 1: git pull code |
|
|
|
Step 2: browse to http://<server name>.prelub.com:9000 |
|
|
|
username: admin |
|
|
|
password: admin |
|
|
|
Step 3: Stop app in supervisor |
|
|
|
Step 4: Build project |
|
|
|
''' |
|
|
|
vapor build --enable-prefetching --configuration release |
|
|
|
''' |
|
|
|
Step 5: Start app in supervisor on the website |
|
|
|
|
|
|
|
Log files should exist in the following directories |
|
|
|
'''' |
|
|
|
cat /var/log/<appname>.prelub.com.log |
|
|
|
cat /var/log/<appname>.prelub.com.ru_access.log |
|
|
|
'''' |
|
|
|
|
|
|
|
test |