Build Web Dengan AutoFirebase (Shuriken MOD)
@echo offset /p input="Nama situs yang diinginkan: "set /p projek="Nama project yang sudah ada: "title firebase 0 - %input%cd F:\laragon\shuriken3mod\export\htmlcall firebase hosting:sites:create %input% --project %projek%call firebase init hostingdel F:\laragon\shuriken3mod\export\html\public\index.htmlxcopy *.html publicxcopy p publicdel "F:\laragon\shuriken3mod\export\html\firebase.json"echo { >> F:\laragon\shuriken3mod\export\html\firebase.jsonecho "hosting": { >> F:\laragon\shuriken3mod\export\html\firebase.jsonecho "target":"%input%", >> F:\laragon\shuriken3mod\export\html\firebase.jsonecho "public": "public", >> F:\laragon\shuriken3mod\export\html\firebase.jsonecho "ignore": [ >> F:\laragon\shuriken3mod\export\html\firebase.jsonecho "firebase.json", >> F:\laragon\shuriken3mod\export\html\firebase.jsonecho "**/.*", >> F:\laragon\shuriken3mod\export\html\firebase.jsonecho "**/node_modules/**" >> F:\laragon\shuriken3mod\export\html\firebase.jsonecho ] >> F:\laragon\shuriken3mod\export\html\firebase.jsonecho } >> F:\laragon\shuriken3mod\export\html\firebase.jsonecho } >> F:\laragon\shuriken3mod\export\html\firebase.jsoncall firebase target:apply hosting %input% %input%call firebase deploy --only hosting:%input%start chrome %input%.web.apppause
Langkah-langkahnya adalah sebagai berikut :
1. buat projectnya terlebih dahulu di firebase.com
2. ganti
alamat folder dimana folder EXPORT berada (yang diwarna merah), silahkan pake
fitur replace/ctrl H
3. isi nama situs (yang nantinya akan menjadi subdomain)
4. isi nama project dimana situsnya di letakkan
5. jalankan script
6. akan muncul pertanyaan
o
Are you ready to proceed? (Y/n) --> ENTER
o
Please select an option --> pilih use an
existing --> kemudian pilih nama projectnya
o
What do you want to use as your public
directory? (public) --> ENTER
o
Configure as a single-page app (rewrite all urls
to /index.html)? (y/N) --> ENTER
o
Set up automatic builds and deploys with GitHub?
(y/N) --> ENTER
o
File public/404.html already exists. Overwrite?
(y/N) --> ENTER
o
File public/index.html already exists.
Overwrite? (y/N) --> ENTER
o
Overwrite F:\laragon\shuriken3mod\export\html\public\index.html
(Yes/No/All)? --> tekan y/a
7. tunggu script selesai menjalankan tugasnya dan NIKMATI
PROSES nya
8. web yang kita build tadi akan terbuka secara otomatis di browser chrome
Sampai disini dulu kalo ada yang ditanyakan silahkan pm me, nanti kalo ada yang kurang jelas saya perjelas lagi dengan gambar dan/ video, InsyaAllah
Belum ada Komentar untuk "Build Web Dengan AutoFirebase (Shuriken MOD)"
Posting Komentar