These are chat archives for mirumee/saleor

11th
Aug 2018
Simon Søllingvraa
@simsoll_twitter
Aug 11 2018 05:52
@Pacu2 Thanks, now I get it :) I just needed to pull the latest changes (I was a few days days behind the merge of ModelTranslations)...
Sunil Kumar
@sunilsrikumar
Aug 11 2018 05:56
@Lebzanwa maybe this one you need to update in settings.py # DATABASES = {

'default': {

'ENGINE': 'django.db.backends.postgresql_psycopg2',

'NAME': 'db_name',

'USER': 'db_user',

'PASSWORD': 'db_user_password',

'HOST': 'localhost',

'PORT': '',

}

}

Kuntal
@Kuntal-KK
Aug 11 2018 06:46
@NyanKiyoshi Thanks a lot. It is now working finally. You are really awesome.
NyanKiyoshi
@NyanKiyoshi
Aug 11 2018 06:47
Awesome!
@Lebzanwa where are you stuck? Did you manage to install postgres and get pgadmin up and running?
yogesh-kamble
@yogesh-kamble
Aug 11 2018 07:14
Hi
I am using Ubuntu 16.04
and docker-compose build is failing for 'npm install' command
i opened the issue here.. mirumee/saleor#2552
npm install works fine on local machine but inside docker it's failing
yogesh-kamble
@yogesh-kamble
Aug 11 2018 08:26
can somebody please help
I am trying solution as per google but no help
yogesh-kamble
@yogesh-kamble
Aug 11 2018 08:31
npm ERR! code EINTEGRITY
npm ERR! sha512-JoiyD00Yo1o61OJsoP2s2kb19L1/Y2p3QFcCdWdF6oomBGKVYuZyqHWemRBfQ2uGYsk+CH3eCguXNfpjzlcpaA== integrity checksum failed when using sha512: wanted sha512-JoiyD00Yo1o61OJsoP2s2kb19L1/Y2p3QFcCdWdF6oomBGKVYuZyqHWemRBfQ2uGYsk+CH3eCguXNfpjzlcpaA== but got sha512-Gk/zY2XhGAJ2fByVfmLztKVpxqv/uHicvph7nj6r7EdxjQfnjJjCF8tvzthuF/mIa8GqOs1Rrtce8cf9pac7zQ==. (8955 bytes)
yogesh-kamble
@yogesh-kamble
Aug 11 2018 14:20
issue solved by just changing network not sure how package.json is depends on network
NyanKiyoshi
@NyanKiyoshi
Aug 11 2018 14:21
Changing network? Of network interface?
yogesh-kamble
@yogesh-kamble
Aug 11 2018 14:23
I switched from BSNL Broadband to JIO and issue didn't occur
NyanKiyoshi
@NyanKiyoshi
Aug 11 2018 14:29
Probably the data being not correctly transferred to you from BSNL Broadband :/
Lebzanwa
@Lebzanwa
Aug 11 2018 16:31
@NyanKiyoshi Yes I've install the Postgres. How do get PGadmin and running?
Lebzanwa
@Lebzanwa
Aug 11 2018 16:39
Anyone there..?
Filip Kucharczyk
@Pacu2
Aug 11 2018 16:53
I think you could refer to postgresql docs for better help
Lebzanwa
@Lebzanwa
Aug 11 2018 17:02
@Pacu2 I'm running Windows 10...
NyanKiyoshi
@NyanKiyoshi
Aug 11 2018 18:24
@Lebzanwa in the Windows start menu, type pgadmin, it should show up
Lebzanwa
@Lebzanwa
Aug 11 2018 21:18
@NyanKiyoshi yep is running
Lebzanwa
@Lebzanwa
Aug 11 2018 21:39
guys... I will like someone to walk me through.. Setting up saleor. Please help...
NyanKiyoshi
@NyanKiyoshi
Aug 11 2018 23:16

Assuming you have a python virtual environment installed and activated; and nodejs + npm in your PATH.

In pgadmin, on the left panel, right click on the local server (named localhost or 127.0.0.1), select "create", enter "saleor" as the name and then hit "create".

Then in the console where you setup the SECRET_KEY, in the saleor directory, type ./manage.py migrate && ./manage.py populatedb

Then, npm i and npm run build-assets

Then ./manage.py runserver

Lebzanwa
@Lebzanwa
Aug 11 2018 23:34
1a.jpg
@NyanKiyoshi
NyanKiyoshi
@NyanKiyoshi
Aug 11 2018 23:35
Database
Lebzanwa
@Lebzanwa
Aug 11 2018 23:38

@NyanKiyoshi

for the 'Owner' option which must I select.?

NyanKiyoshi
@NyanKiyoshi
Aug 11 2018 23:39
let it to postgres it's fine for now. Then add
a new role from create "login/ group role" named "saleor"
Lebzanwa
@Lebzanwa
Aug 11 2018 23:43
OK. cool. I'm done...
Done it...
NyanKiyoshi
@NyanKiyoshi
Aug 11 2018 23:45
Now you can run the commands above
Lebzanwa
@Lebzanwa
Aug 11 2018 23:46
OK... I'm using Git Bash.. It's that cool..?
To run commands?
NyanKiyoshi
@NyanKiyoshi
Aug 11 2018 23:47
No problem at all
Lebzanwa
@Lebzanwa
Aug 11 2018 23:49
2a.jpg
@NyanKiyoshi
NyanKiyoshi
@NyanKiyoshi
Aug 11 2018 23:49
Do you have Python3 installed?
Lebzanwa
@Lebzanwa
Aug 11 2018 23:50
Yep.. I do
NyanKiyoshi
@NyanKiyoshi
Aug 11 2018 23:50
Do you have it in your PATH? (echo $PATH)
Lebzanwa
@Lebzanwa
Aug 11 2018 23:52
Yep. I do
3a.jpg
@NyanKiyoshi
NyanKiyoshi
@NyanKiyoshi
Aug 11 2018 23:55
Download https://bootstrap.pypa.io/get-pip.py and run the file with python3 (you can do '/c/Python/Python 3.6.5/python.exe' 'C:/path/to/get-pip.py'), then do '/c/Python/Python 3.6.5/python.exe' -m pip install virtualenv and '/c/Python/Python 3.6.5/python.exe' -m virtualenv ../saleor-env