How to move my project to a new folder


#1

Hi!
I want to move my project to another location/folder on my harddrive.
I have tried to just copy/pase, but gets lots of errors
How to do this the proper way?


#2

What have exactly have you copied? Copying the root of your app to a different folder should work just fine, have done it several times.

And what kind of errors do you get? And when do you get them? As you can see, it would be nice if you would supply more details :slight_smile:


#3

Hi
I copied all the folders and files from my previous folder to my new.
When I start Ionic Serve I get error: There is an error in your gulpfile:
Error: ENOENT: no such file or directory, scandir ‘C:\Users\me\apps\gulp-tasks’


#4

What do you mean, copying the whole project or just a folder from that project?


#5

When do you get that error? When you run a command? If so what command are you running?

I’ve seen this error once. Managed to fix it by using the command ionic build <platform>

Also try to do a ionic info and post the information please.


#6

Hi.
Thanks for taking your time.

I copied my folder c:\users\totoni\project2
to
c:\users\totoni\cityguide

I did a Ionic build Android now got the app running with Ionic Serve.
But when I now make a change to the sourcecode, no changes are seen when I do a Restart with Ionic serve

Ionic info: Your system information:

Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 1.3.0
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
OS:
Node Version: v4.2.6


#7

Did you kill all existing ionic serve servers? check to make sure its listening on the same port your browser is looking at.


#8

Not sure what you mean.
I have restartet computer, and when I do a restart command from Ionic Serve, I the url in my browser changes to the restart id.

Edit:
And when I change some of the code, I see in cmd windows ‘ionic html changed “path”’


#9

in the cmd window it will say ‘Running dev server: http://localhost:8100’ or something similar.

make sure your browser url you are viewing is the same port. As you have restarted I doubt this will be the issue.

Ionic serve by default has automatic refresh through file watchers, what is your expected behavior using restart?


#10

Hi
the port and url is the same.

I’m just changing som text, it worked before I moved the project. Nothing of my changes shows up.

It’s like some sort of cache that is not updating


#11

I have now tried some other projects I have, and same situasjon. Ionic Serve does not show my changes in sourcecode


#12

Are you changing the files in the App directory or the www directory?

In ionic2 all development should be done in the app directory not the www directory as in ionic 1.

Sorry i’m clutching at straws so starting with the basics.


#13

I’m sorry, I really don’t know what you mean.
I change a html file that is in C:\Users\totoni\project\www\views\app

Is that what you ask for :o


#14

Hey totoni, I really want to get you unstuck here.

The file path you have provided does not look like a normal ionic2 path.

would you be able to run ‘ionic info’ and paste the response here.

If you are using Ionic2 your root directory should look something like this

  • app
    -hooks
    -node_modules
    -resources
    -www
    config.xml
    package.json
    etc…

all development should be done in the ‘app’ folder, not the ‘www’ folder, with the exception of index.html


#15

Hi MagicAardvark

I really appriciate it.
info:Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 1.3.0
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
OS:
Node Version: v4.2.6

No, it’s probably not a normal ionic2 path. It’s a ionic1 and have just installed ionic 2 without changing any paths


#16

Yes that is the issue here. the apps local version is still angular 1. There are a lot of differences between ionic1 and 2,
i’d recommend following Josh’s guide for upgrading as you will have to change quite a few things.

Hope this gets you up and running.


#17

Hi again.
I see it’s to much of a job converting to Ionic 2 now, so I have .downgraded.
Ionic info now is:
Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Version: 1.3.0
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
OS:
Node Version: v4.2.6

But my problems remains