الأربعاء، 29 أغسطس 2012

استضافة CSS، وجافا سكريبت وهتمل الملفات في Google Project Hosting


سكريبت، يمكن استضافت المستندات CSS في Google Project Hosting. استضافة رموز المصدر، وجافا سكريبت، CSS رموز في Google Project Hosting هو أكثر أمانا بدلا من استضافة الشخصية أو غيرها من الدول الحرة خدمة استضافة. جوجل يتيح لك استضافة غير محدودة والملفات الخاصة بك، المدونات أو وثائق ستكون آمنة لفترة غير محدودة في حين أن غيرها خدمات الاستضافة المجانية قد أغلقت في أي وقت. جوجل المشروع استضافة نعمة لمطوري الويب. في العديد من المشاريع، يمكننا فقط تحميل ملفات جافا سكريبت وببساطة hotlink إليها. ولكن هذه الحيلة نفسها لا يعمل عند ربط الساخن لCSS، وملفات الصور وصفحات HTML أو ملفات. هذا هو لأنه، بشكل افتراضي عند تحميل أي ملف ونحن لمدونة جوجل، كما يتم تقديم ذلك النص العادي من نوع MIME. هذا يعمل مع ملفات سكريبت ولكن ليس مع CSS، وملفات الصور أو صفحات HTML. على سبيل المثال لقد استضافت ملف HTML في Google Project Hosting اضغط هنا لذلك، نحن ذاهبون لمناقشة بالتفصيل كيف لاستضافة أي ملف باستخدام مدونة جوجل والفرعية عميل الإصدار. أنا في خدمة جزء من جزء الإجراءات.

الاشتراك في جوجل المشروع استضافة

  • أولا وقبل كل تسجيل للحصول على مشروع جوجل استضافة

  • الآن انقر إنشاء مشروع جديد

  • ملء الان اسم المشروع الخاص بك وغيرها من المعلومات





  • You Must select "Subversion" as Version Control system.


  • Now Click on the Create Project button

  • When the project is created navigate to the "Source" tab from the project page

  • Note down the special URL like yourprojetname.googlecode.com/svn/trunk and then click on the googlecode.com password


  • After Getting password save it elsewhere


  • DOWNLOAD AND CONFIGURATION TORTOISESVN

    TortoiseSVN is a shell control client will be used as Subversion client to upload our static files with proper mime-type. The software was named Tortoise as it is as slow as Tortoise.
    Download Tortoisesvn
  • After download install it

  • Now right click on desktop like refresh and navigate to Tortoise SVN → Settings


  • A pop up settings page will appear. Now click on the "Edit" button


  • This will open up a notepad with a text document

  • This document holds all the records for the mime-type of the files to be uploaded. We need to add a list of mime-type according to extension on this file
  • Just after the end of the text document, add the following texts from the box below.

  • [miscellany]
    enable-auto-props = yes
    [auto-props]
    rmats *.bat
    # Scriptish f
    o= svn:eol-style=native; svn:keywords=Id; svn-mine-type=text/plain
    *.bsh = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-beanshell
    *.cgi = svn:eol-style=native; svn:keywords=Id; svn-mine-type=text/plain
    *.js = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/javas
    *.cmd = svn:eol-style=native; svn:keywords=Id; svn-mine-type=text/plain cript
    hp *.pl = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-perl; svn
    *.php = svn:eol-style=native; svn:keywords=Id Rev Date; svn:mime-type=text/x- p:executable *.pm = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-perl
    able *.sh = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-sh; svn:executabl
    *.py = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/x-python; svn:execu te # Image formats *.bmp = svn:mime-type=image/bmp *.gif = svn:mime-type=image/gif *.ico = svn:mime-type=image/ico *.jpeg = svn:mime-type=image/jpeg
    pdf = svn:mime-type=application/
    *.jpg = svn:mime-type=image/jpeg *.png = svn:mime-type=image/png *.tif = svn:mime-type=image/tiff *.tiff = svn:mime-type=image/tiff # Data formats * .pdf *.avi = svn:mime-type=video/avi *.doc = svn:mime-type=application/msword *.eps = svn:mime-type=application/postscript *.gz = svn:mime-type=application/gzip
    cript *.psd = svn:mime-type=applicati
    *.mov = svn:mime-type=video/quicktime *.mp3 = svn:mime-type=audio/mpeg *.ppt = svn:mime-type=application/vnd.ms-powerpoint *.ps = svn:mime-type=application/post son/photoshop *.rtf = svn:mime-type=text/rtf *.swf = svn:mime-type=application/x-shockwave-flash *.tgz = svn:mime-type=application/gzip *.wav = svn:mime-type=audio/wav
    td = svn:mime-type=text/xml *.html = svn
    *.xls = svn:mime-type=application/vnd.ms-excel *.zip = svn:mime-type=application/zip # Text formats .htaccess = svn:mime-type=text/plain *.css = svn:mime-type=text/css *. d:mime-type=text/html *.ini = svn:mime-type=text/plain *.sql = svn:mime-type=text/x-sql *.txt = svn:mime-type=text/plain *.xhtml = svn:mime-type=text/xhtml+xml *.xml = svn:mime-type=text/xml
    t/plain COPYING = svn:mime-type=
    *.xsd = svn:mime-type=text/xml *.xsl = svn:mime-type=text/xml *.xslt = svn:mime-type=text/xml *.xul = svn:mime-type=text/xul *.yml = svn:mime-type=text/plain CHANGES = svn:mime-type=te xtext/plain INSTALL = svn:mime-type=text/plain Makefile* = svn:mime-type=text/plain README = svn:mime-type=text/plain TODO = svn:mime-type=text/plain # Code formats
    ative; svn:keywords=Id; svn:mime-type=text/plain *.java = svn:eol-style=
    *.c = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain *.cpp = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain *.h = svn:eol-style= nnative; svn:keywords=Id; svn:mime-type=text/plain *.as = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain
    *.mxml = svn:eol-style=native; svn:keywords=Id; svn:mime-type=text/plain

  • Now save the text document

  • Now press OK on all the open SVN windows.

  • All technical process are done. Now let's see how to upload HTML pages or CSS, JavaScripts Codes

  • HOW TO HOST HTML, CSS, JAVASCRIPT

  • Now Right Click and navigate to TortoiseSVN → Repo Browser.


  • Enter the URL and press ok


  • A dialogue box will prompt for your username and Password. Enter the your Gmail and the googlecode.com password that you have stored. Press ok

  • Now the repository browser will open.

  • First Drag and drop the HTML, CSS, JavaScript files in the box you want to upload. Wait some moments for uploading file.


  • After download you will get the link of your uploaded file.

  • If you have configured TortoiseSVN properly then it will upload with proper mime-type and the file is ready for hot linking. You have got the URL to hot link

  • It is a detail discussion on hot linking files using Google Project Hosting. Actually this method is special for hosting HTML pages though you also can host CSS, JavaScript codes too< The whole precess is complex.


    ليست هناك تعليقات:

    إرسال تعليق