These are chat archives for mirumee/saleor

2nd
Nov 2018
Joaquim Lozano
@Pyc0kw4k
Nov 02 2018 07:53

@Pacu2 Thank you for your answer, I will try to adapt Saleor is very promising, but it is true that the concept of directly modifying the source files seems annoying to me to keep Saleor up to date.

Thank you again and congratulations for your work!

thegraphn
@thegraphn
Nov 02 2018 10:52
Hi there, I just installed Saleor on my server. I am reading the documentation and I do not understand how/where can I put the IP adress of my server ? Thank you in advance for your help <3
Filip Kucharczyk
@Pacu2
Nov 02 2018 11:00
Put it under the ALLOWED_HOSTS env variable (it takes a list of addresses separated by a single comma)
Then in the Dashboard, Site Settings section, you might want to add your domain
thegraphn
@thegraphn
Nov 02 2018 11:09
Hi Filip, ty a lot, I ll try now
you mean the dasboard of Saleor right ?
Filip Kucharczyk
@Pacu2
Nov 02 2018 11:16
Yup
thegraphn
@thegraphn
Nov 02 2018 11:25
so I put my ip in the ALLOWED_HOSTS = ["xx.xx.xx.xx"]. Sorry, I m quit new with this stuff... So now I do the python manage.py runserver. and it should work ?
Filip Kucharczyk
@Pacu2
Nov 02 2018 11:27
Easiest way to set up saleor is always docker. docker-compose up should do the job.
Regarding the ALLOWED_HOSTS, if you set it up as settings.py (or relevant) level, then yes.
However, if you want to set it through env variables, it should have ALLOWED_HOSTS="localhost,127.0.0.1,yourwebsite.com" format
thegraphn
@thegraphn
Nov 02 2018 11:28
okay ty
manish211215
@manish211215
Nov 02 2018 11:34
i have been facing issue in installation of saleor when i run command in windows powershell npm run build-assets than it give error like this

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! saleor@0.0.0 build-assets: webpack -p
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the saleor@0.0.0 build-assets script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\HOME\AppData\Roaming\npm-cache_logs\2018-11-02T11_29_23_139Z-debug.log

manish211215
@manish211215
Nov 02 2018 11:41
@Pacu2 please help sir what is the problem here?
Filip Kucharczyk
@Pacu2
Nov 02 2018 13:58
Where there any problems during npm i command?
Filip Kucharczyk
@Pacu2
Nov 02 2018 14:13
Can you run it with docker instead?
Stephen Moloney
@stephenmoloney
Nov 02 2018 17:45
if i add a new category, is it meant to show up in the storefront...
I think there may be some sort of errror for me - should i open an issue? I've no idea what is wrong though...
Traceback (most recent call last): File "./saleor/core/middleware.py", line 27, in middleware client_id, path=path, language=language, headers=headers) File "./saleor/core/analytics.py", line 68, in report_view _report(client_id, payloads, extra_headers=extra_headers) File "./saleor/core/analytics.py", line 36, in _report **extra_data) File "/usr/local/lib/python3.6/site-packages/celery/app/task.py", line 408, in delay return self.apply_async(args, kwargs) File "/usr/local/lib/python3.6/site-packages/celery/app/task.py", line 535, in apply_async **options File "/usr/local/lib/python3.6/site-packages/celery/app/base.py", line 745, in send_task amqp.send_task_message(P, name, message, **options) File "/usr/local/lib/python3.6/site-packages/celery/app/amqp.py", line 552, in send_task_message **properties File "/usr/local/lib/python3.6/site-packages/kombu/messaging.py", line 169, in publish compression, headers) File "/usr/local/lib/python3.6/site-packages/kombu/messaging.py", line 252, in _prepare body) = dumps(body, serializer=serializer) File "/usr/local/lib/python3.6/site-packages/kombu/serialization.py", line 221, in dumps payload = encoder(data) File "/usr/local/lib/python3.6/contextlib.py", line 99, in __exit__ self.gen.throw(type, value, traceback) File "/usr/local/lib/python3.6/site-packages/kombu/serialization.py", line 54, in _reraise_errors reraise(wrapper, wrapper(exc), sys.exc_info()[2]) File "/usr/local/lib/python3.6/site-packages/vine/five.py", line 178, in reraise raise value.with_traceback(tb) File "/usr/local/lib/python3.6/site-packages/kombu/serialization.py", line 50, in _reraise_errors yield File "/usr/local/lib/python3.6/site-packages/kombu/serialization.py", line 221, in dumps payload = encoder(data) File "/usr/local/lib/python3.6/site-packages/kombu/utils/json.py", line 69, in dumps **dict(default_kwargs, **kwargs)) File "/usr/local/lib/python3.6/json/__init__.py", line 238, in dumps **kw).encode(obj) File "/usr/local/lib/python3.6/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/local/lib/python3.6/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/usr/local/lib/python3.6/site-packages/kombu/utils/json.py", line 59, in default return super(JSONEncoder, self).default(o) File "/usr/local/lib/python3.6/json/encoder.py", line 180, in default o.__class__.__name__) kombu.exceptions.EncodeError: Object of type 'generator' is not JSON serializable
Filip Kucharczyk
@Pacu2
Nov 02 2018 18:08
Category should be accessible straight after, but you might want to add it to the Menu (via Dashboard -> Navigation)
Could you open an github issue with this error? Is your google analytic plugged in?
Stephen Moloney
@stephenmoloney
Nov 02 2018 18:12
@Pacu2 , I din't realize that the category had to be added manually... thanks. Dashboard -> Navigation seems like it should work once i put in the url.
About the error, No, I don't have google analytics plugged in.
GOOGLE_ANALYTICS_TRACKING_ID is not set at all.
I am a bit confused about the difference between googleanalytics and Measurement Protocol Overview, does setting GOOGLE_ANALYTICS_TRACKING_ID activate the measurement protocol only and not the analytics ?
Joe Czepil
@ProgrammingJoe_twitter
Nov 02 2018 20:24
Hi, I'm just experimenting with the code right now and I was wondering where do you guys use React and what for?