-
Notifications
You must be signed in to change notification settings - Fork 61
Migrate application & database to the same server #11
Comments
As far as I can remember, the specifications would be something like that:
|
Almost everything set at our DigitalOcean droplet. I'm having trouble with The
The file permissions seems right: root@serenata-jarbas:~/jarbas# ll
total 76
drwxr-xr-x 9 root www-data 4096 Sep 15 22:23 ./
drwx------ 11 root root 4096 Sep 15 22:33 ../
drwxr-xr-x 2 root www-data 4096 Sep 15 22:23 bin/
drwxr-xr-x 2 root www-data 4096 Sep 15 20:56 contrib/
-rw-r--r-- 1 root www-data 562 Sep 15 20:56 elm-package.json
drwxr-xr-x 4 root www-data 4096 Sep 15 21:39 elm-stuff/
drwxr-xr-x 8 root www-data 4096 Sep 15 22:24 .git/
-rw-r--r-- 1 root www-data 172 Sep 15 20:56 .gitignore
drwxr-xr-x 6 root www-data 4096 Sep 15 22:23 jarbas/
-rwxr-xr-x 1 root www-data 804 Sep 15 20:56 manage.py*
drwxr-xr-x 188 root www-data 4096 Sep 15 22:18 node_modules/
-rw-r--r-- 1 root www-data 288 Sep 15 20:56 package.json
-rw-r--r-- 1 root www-data 39 Sep 15 20:56 Procfile
-rw-r--r-- 1 root www-data 3272 Sep 15 20:56 README.md
-rw-r--r-- 1 root www-data 143 Sep 15 22:23 requirements-dev.txt
-rw-r--r-- 1 root www-data 57 Sep 15 20:56 requirements.txt
-rw-r--r-- 1 root www-data 13 Sep 15 20:56 runtime.txt
drwxr-xr-x 4 root www-data 4096 Sep 15 22:18 staticfiles/ root@serenata-jarbas:~/jarbas# ll staticfiles/
total 532
drwxr-xr-x 4 root www-data 4096 Sep 15 22:18 ./
drwxr-xr-x 9 root www-data 4096 Sep 15 22:23 ../
drwxr-xr-x 6 root www-data 4096 Sep 15 21:20 admin/
-rwxr-xr-x 1 root www-data 3098 Sep 15 22:18 app.8706439a4744.css*
-rwxr-xr-x 1 root www-data 816 Sep 15 22:18 app.8706439a4744.css.gz*
-rwxr-xr-x 1 root www-data 208598 Sep 15 21:39 app.ac7397ecb8a7.js*
-rwxr-xr-x 1 root www-data 38857 Sep 15 22:18 app.ac7397ecb8a7.js.gz*
-rwxr-xr-x 1 root www-data 3098 Sep 15 22:18 app.css*
-rwxr-xr-x 1 root www-data 816 Sep 15 22:18 app.css.gz*
-rwxr-xr-x 1 root www-data 208598 Sep 15 22:18 app.js*
-rwxr-xr-x 1 root www-data 38857 Sep 15 22:18 app.js.gz*
drwxr-xr-x 6 root www-data 4096 Sep 15 21:20 rest_framework/
-rwxr-xr-x 1 root www-data 8950 Sep 15 22:18 staticfiles.json* Any ideas? |
I'd strongly recommend not running stuff as root, or even having these files be owned by root. If there's a security issue somewhere, you're completely hosed. My guess is that nginx, if you installed it from the apt-get package, is running as the |
Many thanks for the advice of avoiding running as root. As a terrible devops I had completely forgotten about this risk. Gonna change that today. The |
Everything is working at http://45.55.37.68/ now. A short TODO list before closing this Issue:
|
|
@cuducos I just created http://jarbas.datasciencebr.com/. Should be live soon. |
Closing this issue, as it's live, but gonna move some concerns to a more specific issue in a sec. |
Currently Jarbas is a slow application for four reasons:
The text was updated successfully, but these errors were encountered: