To update your working copy with latest changes from GIT, run
In our case, for imagehostnow project, it will beCode:cd YOUR_PROJECT_FOLDER
git pull origin master
Code:cd ~/www/imagehostnow.com
git pull origin master
Printable View
To update your working copy with latest changes from GIT, run
In our case, for imagehostnow project, it will beCode:cd YOUR_PROJECT_FOLDER
git pull origin master
Code:cd ~/www/imagehostnow.com
git pull origin master
I run those two commands, and got following results:
http://i.imgur.com/PZ8XpEz.png
cd YOUR_PROJECT_FOLDER
that means, you should "change directory" to the folder where your project files are.
Replace YOUR_PROJECT_FOLDER with path to the folder where the files are, in your case, ~/www/imagehostnow.com
git pull origin master
It failed to pull changes from report to local as some files are changed on your PC.
If the change you need to keep, then you need to make commit (make a new branch, never commit on master branch).
For now, what you need to do is delete the changed file "bootstrap/start.php", then run "git pull origin master" again, it should work.
Post result after doing it.
I deleted the changed file "bootstrap/start.php", Then run the command:
Code:sherly@HOME:~/www/imagehostnow.com$ cd ~/www/imagehostnow.com
sherly@HOME:~/www/imagehostnow.com$ git pull origin master
From ssh://git.buyscripts.in:10022/buyscripts/imagehost
* branch master -> FETCH_HEAD
Updating 23bd260..1316183
Fast-forward
app/config/local/database.php | 6 +-
app/controllers/Admin/AuthController.php | 115 +++++++++++++++++++++
app/controllers/Admin/HomeController.php | 35 +++++++
app/controllers/Admin/ImageController.php | 70 +++++++++++++
app/controllers/Admin/SettingsController.php | 58 +++++++++++
app/controllers/Admin/SpamReportsController.php | 25 +++++
app/controllers/Admin/UserController.php | 65 ++++++++++++
app/controllers/ImageController.php | 52 +++++++++-
app/controllers/UploadController.php | 14 ++-
app/controllers/UserController.php | 15 +++
.../2015_01_09_084809_add_type_in_images.php | 32 ++++++
...0_040524_add_default_image_privacy_in_users.php | 32 ++++++
.../2015_01_10_062030_create_settings.php | 33 ++++++
.../2015_01_13_053228_create_spam_reports.php | 33 ++++++
app/models/Image.php | 25 +++++
app/models/Net.php | 29 ++++++
app/models/Settings.php | 31 ++++++
app/models/SpamReport.php | 17 +++
app/models/User.php | 17 +++
app/routes.php | 40 +++++++
app/views/admin/auth/forgot_password.blade.php | 48 +++++++++
app/views/admin/auth/login.blade.php | 66 ++++++++++++
app/views/admin/emails/reset_password.blade.php | 16 +++
app/views/admin/home/index.blade.php | 44 ++++++++
app/views/admin/image/index.blade.php | 51 +++++++++
app/views/admin/image/view.blade.php | 78 ++++++++++++++
app/views/admin/layouts/master.blade.php | 92 +++++++++++++++++
app/views/admin/settings/change_password.blade.php | 38 +++++++
app/views/admin/settings/index.blade.php | 47 +++++++++
app/views/admin/spam_reports/index.blade.php | 30 ++++++
app/views/admin/user/edit.blade.php | 35 +++++++
app/views/admin/user/images.blade.php | 53 ++++++++++
app/views/admin/user/index.blade.php | 47 +++++++++
app/views/image/index.blade.php | 32 ++++++
app/views/layouts/master.blade.php | 7 +-
app/views/upload/success.blade.php | 7 +-
app/views/user/image_settings.blade.php | 31 ++++++
app/views/user/images.blade.php | 40 ++++++-
app/views/user/settings_menu.blade.php | 3 +
bootstrap/start.php | 3 +-
40 files changed, 1496 insertions(+), 16 deletions(-)
create mode 100644 app/controllers/Admin/AuthController.php
create mode 100644 app/controllers/Admin/HomeController.php
create mode 100644 app/controllers/Admin/ImageController.php
create mode 100644 app/controllers/Admin/SettingsController.php
create mode 100644 app/controllers/Admin/SpamReportsController.php
create mode 100644 app/controllers/Admin/UserController.php
create mode 100644 app/database/migrations/2015_01_09_084809_add_type_in_images.php
create mode 100644 app/database/migrations/2015_01_10_040524_add_default_image_privacy_in_users.php
create mode 100644 app/database/migrations/2015_01_10_062030_create_settings.php
create mode 100644 app/database/migrations/2015_01_13_053228_create_spam_reports.php
create mode 100644 app/models/Net.php
create mode 100644 app/models/Settings.php
create mode 100644 app/models/SpamReport.php
create mode 100644 app/views/admin/auth/forgot_password.blade.php
create mode 100644 app/views/admin/auth/login.blade.php
create mode 100644 app/views/admin/emails/reset_password.blade.php
create mode 100644 app/views/admin/home/index.blade.php
create mode 100644 app/views/admin/image/index.blade.php
create mode 100644 app/views/admin/image/view.blade.php
create mode 100644 app/views/admin/layouts/master.blade.php
create mode 100644 app/views/admin/settings/change_password.blade.php
create mode 100644 app/views/admin/settings/index.blade.php
create mode 100644 app/views/admin/spam_reports/index.blade.php
create mode 100644 app/views/admin/user/edit.blade.php
create mode 100644 app/views/admin/user/images.blade.php
create mode 100644 app/views/admin/user/index.blade.php
create mode 100644 app/views/user/image_settings.blade.php
sherly@HOME:~/www/imagehostnow.com$
Great, now git pull worked.
See it created many new files ? Some of the new files are
That means, new database migrations are added to project.Code:create mode 100644 app/database/migrations/2015_01_09_084809_add_type_in_images.php
create mode 100644 app/database/migrations/2015_01_10_040524_add_default_image_privacy_in_users.php
create mode 100644 app/database/migrations/2015_01_10_062030_create_settings.php
create mode 100644 app/database/migrations/2015_01_13_053228_create_spam_reports.php
You can migrate these files by running command
That command will read folder app/database/migrations/ and migrate files that are yet to migrate, so your application have newer database tables and table structure.Code:php artisan migrate
EDIT: Corrected spelling for artisan
I run the command.
Find below the result.Code:php artisan migrate
Code:sherly@HOME:~/www/imagehostnow.com$ php aritsan migrate
Could not open input file: aritsan
sherly@HOME:~/www/imagehostnow.com$
It says
There is no such file. May be spelling mistake. Check the command in laravel doc and find out exact command needed to do database migration.Quote:
Could not open input file: aritsan
Just because i made a spelling mistake, don't get stuck, you already know and used command to do database migration. It is same command.
Paste result of
Code:cd ~/www/imagehostnow.com
ls -l
Run the command.
Code:php artisan migrate
Code:sherly@HOME:~/www/imagehostnow.com$ php artisan migrate
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? yes
Migrated: 2015_01_09_084809_add_type_in_images
Migrated: 2015_01_10_040524_add_default_image_privacy_in_users
Migrated: 2015_01_10_062030_create_settings
Migrated: 2015_01_13_053228_create_spam_reports
sherly@HOME:~/www/imagehostnow.com$
Good. Now check phpMyAdmin, you will have new tables created.
Visit web site on your local computer, try uploading an image, see if it works.