既存のディレクトリにローカルリポジトリ作成しをGitHubに登録する
※gitは事前にインストールしているものする。 git管理していない作業ディレクトリや、すでにローカルリポジトリがある場合にGitHubへ登録する手順を書く。 ...
※gitは事前にインストールしているものする。 git管理していない作業ディレクトリや、すでにローカルリポジトリがある場合にGitHubへ登録する手順を書く。 ...
vagrantのCentOS7環境で、Laravelを「cmposer create-project …」でインストールしようとしたら以下のエラーがでた。 # composer create-project --prefer-dist laravel/laravel /var/www/html/laravelapp Installing laravel/laravel (v5.5.28) Failed to download laravel/laravel from dist: The zip extension and unzip command are both missing, skipping. Your command-line PHP is using multiple ini files. Run `php --ini` to show them. Now trying to download from source - Installing laravel/laravel (v5.5.28): Cloning f4cba4f2b2 [RuntimeException] Failed to clone https://github.com/laravel/laravel.git, git was not found, check that it is installed and in your P ATH env. sh: git: command not found create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>] エラーを見ると、**zipとunzipがない。そして、gitもない。**と言っています。 ...
Windows10 + VirtualBox + VagrantでLAMP開発環境手順(1)の続き vagrantでssh接続できたところから。 [vagrant@localhost ~]$ これからLAMP環境を構築していく Apache PHP7 MySQL5.7 rootユーザーになる su パスワードは「vagrant」。 ...
事前にComposerをインストールしておいてください。 Laravelをインストール方法は、2パターン。 Laravelインストーラを使う方法 Laravelインストーラを使わない方法 Laravelインストーラを使う方法 composerコマンドで、Laravelインストーラをダウンロードします。 ...
Linuxコマンドで 「~」チルダの意味は、ホームディレクトリを意味します。 試しに使ってみるとわかりやすい。 agreeというユーザーでログインしており、自身のagreeディレクトリのpublic_htmlディレクトリに移動したい場合は以下のようになる。 ...
事前にXAMPPとLaravelとComposerをインストールしておいてください。 LaravelのインストールはLaravelのインストール方法、方法は2パターン【Windows10】を参考にしてみてください。 プロジェクトフォルダの作成 まずは、作業するためのフォルダを作成します。 ...
**VirtualBox:**ローカル 開発環境に仮想マシンを作れるソフト **Vagrant:**VirtualBoxでローカル開発環境を作るときに便利なソフト VirtualBoxのインストール 以下で、VirtualBoxをインストール https://www.virtualbox.org/ ...
HTML、CSSコーディング作業で使用している私のgulpfileのサンプルを置いておく。 "use strict" const gulp = require('gulp') const sass = require('gulp-sass') //scssコンパイル const autoprefixer = require("gulp-autoprefixer")//べンダープレフィックス const sassGlob = require("gulp-sass-glob")//import文を短くまとめる const cleanCSS = require('gulp-clean-css')//cssフォーマッタ const notify = require('gulp-notify') //エラーを通知 const plumber = require('gulp-plumber') //watch中にエラー防止 const sourcemaps = require('gulp-sourcemaps')//ソースマップ const ejs = require("gulp-ejs") //EJS const rename = require('gulp-rename')//リネーム const replace = require("gulp-replace")//置換 const browserSync = require("browser-sync")//自動リロード const del = require('del')//削除 // paths const paths = { src: 'src', dist: 'dist' } //scssコンパイル gulp.task("sass", () => { return gulp.src(paths.src + "/scss/style.scss") .pipe(plumber({ errorHandler: notify.onError("Error: <%= error.message %>") })) .pipe(sourcemaps.init()) .pipe(sassGlob()) .pipe(sass()) .pipe(autoprefixer({ grid: true })) .pipe(cleanCSS({format: 'beautify'})) .pipe(sourcemaps.write(paths.dist + "/css")) .pipe(gulp.dest(paths.dist + "/css")) .pipe(notify({ title: 'Sassをコンパイルしました。', message: new Date(), sound: 'Tink', })) }) //EJS gulp.task("ejs", () => { return gulp.src([paths.src + "/ejs/**/*.ejs", "!" + paths.src + "/ejs/**/_*.ejs"]) .pipe(ejs({}, {}, {ext:'.html'})) .pipe(rename({ extname: ".html" })) .pipe(replace(/[\s\S]*?(<!DOCTYPE)/, "$1")) .pipe(gulp.dest(paths.dist)) .pipe(notify({ title: 'EJSをコンパイルしました。', message: new Date(), sound: 'Tink', })) }) // server gulp.task('browser-sync', () => { return browserSync.init({ server: { baseDir: paths.dist }, port: 4000, reloadOnRestart: true }) }) // reload gulp.task("reload", done => { browserSync.reload() done() }) // clean gulp.task('clean', (done) => { del(paths.dist + '/**/*'); done(); }); // watch gulp.task("watch", done => { gulp.watch(paths.src + "/scss/**/*.scss", gulp.series('sass', 'ejs', 'reload')) gulp.watch(paths.src + "/ejs/**/*.ejs", gulp.series('ejs', 'reload')) done() }) // gulp gulp.task('default', gulp.parallel('watch', 'browser-sync') ) // build gulp.task('build', gulp.series('clean', gulp.series('sass', gulp.series('ejs',))) )
Python勉強に使っているのが、【実践力を身につける Pythonの教科書】ってのをひたすらやってる。環境はWindows。 WEBアプリを作ってみようのところで、WEBアプリをブラウザでみると日本語が文字化けした。 ...