بعد هذه المشاركة من @cvx حول تثبيت جديد لـ GitHub codespace:
I think everything should be working fine – the only step you’re missing is starting the server
Switch to the other terminal tab (bash):
[image]
and run: bin/ember-cli -u
After it starts you can open the site by cmd-clicking/ctrl-clicking the URL in the output:
[image]
And you’re done!
[image]
I think we can streamline it a bit more. There’s definitely room for improvement!
تشغيل bin/ember-cli -u (للعلم لأي شخص آخر، عليك أولاً الانتقال إلى workspace/discourse)، يؤدي إلى المشكلة التالية:
بالنسبة لأي شخص آخر، قم بتشغيل الأمر التالي:
bundle install --gemfile ./Gemfile
من الدليل /var/www/discourse/workspace/discourse.
ثم، أعد تشغيل bin/ember-cli -u ويجب أن يعمل. أنا فقط أتعلم الآن codespaces، لذلك لست متأكدًا بعد مما إذا كان يمكن حل هذا مسبقًا أم لا، ولكن يبدو أنه يمكن ذلك.
بعد التشغيل بنجاح، يؤدي الانتقال إلى http://localhost:4200/ إلى ظهور الخطأ التالي:
أرى في سجلات الأمر bin/ember-cli -u:
Proxying to http://127.0.0.1:3000
ولكن الانتقال إلى localhost:3000 يؤدي إلى الخطأ التالي:
يبدو أنه بعد التشغيل، يمكنك التقاط اسم المضيف الذي تم إنشاؤه وإضافته إلى ملف development.rb الخاص بك، كالتالي:
config.hosts << "reimagined-journey-9rv47jjqvqfxx7r-4200.app.github.dev"
يمكنك بعد ذلك الوصول إلى المضيف!
لكل من يواجه هذه المشكلة، ستواجه مشكلة أخيرة:
ستحتاج إلى إيقاف تشغيل مثيل ember-cli الخاص بك، وتشغيل الأمر التالي أولاً:
bundle exec rake admin:create
اتبع التعليمات لإنشاء حساب مسؤول، ثم أعد تشغيل bin/ember-cli -u وستحصل أخيرًا على نسخة عمل من Discourse في GitHub Codespace.
لكل من يواجه مشاكل هنا، لقد كتبت دليلاً لإعداد بيئتك باستخدام GitHub Codespaces حتى لا تضطر إلى المعاناة:
Developing Using GitHub Codespaces
GitHub Codespace is a great development option. It’s great because it’s hosted in the cloud, I can easily ensure that everyone developing here has the same environment, no dealing with local docker installations, easy access to making my local dev instance available publicly, and also just using new technology is fun.
I’m currently re-learning development and decided to pickup GitHub Codespaces in addition to learning some Discourse development, so I made th…