SITES


The first thing you'll need to do is to create a site. This will allow you to connect to a server and edit files.

If you have an existing website with a hosting account, you can use ShiftEdit to connect to it.

If however you are learning web development and don't have a web hosting account then you can connect to either Google Drive or Dropbox.

Adding a site

From the file panel click the Site bar-> New Site..

You then have the choice of creating a new site, connecting to an existing site or importing a site definition from FileZilla or Dreamweaver.

Create new

You can create new websites on any servers that you have connected to ShiftEdit. You have a few choices like creating a blank site, a new wordpress site or cloning a git repository.

The site name will be used to create a custom url for your project e.g:

projectname.myusername.shiftedit.io

Choose a server that you have added and a stack.

Once saved, ShiftEdit will create your site.

Add Existing

FTP

Enter the Name, Domain (fto host), Username and Password.

Then click choose next to the dir field to select your home directory. This is usually called httpdocs, public_html or something similar.

Optionally you can enter a web url which will be used to preview your files.

Click Test Connection to ensure the connection works.

 

Turbo mode

For faster connections you can enable turbo mode. This will upload a PHP file (shiftedit-turbo.php) to your server that will act as a proxy for FTP connections. This will have lower latency due to running on the same server as the FTP server. Turbo mode can also help work-around connection issues. In order for Turbo mode to work you must provide a Web url and your server must support PHP.

If turbo mode will not connect you can check the JS console for errors (Ctrl+Shift+J).

SFTP

SFTP is setup in a similar way to FTP.

Key authentication is also supported. You can generate an SSH key from your account area.

Put the public key in the ~/.ssh/authorized_keys file on your server.

Then on the add site window, go to Advanced -> Logon Type -> Key Authentication

Dropbox

When Dropbox is selected from the server type dropdown a new window will open which will prompt you for permission.

Once authorised it will populate the username, password fields.

You can preview the files by locaing them on your computer and opening them in your browser.

GDrive

When GDrive is selected from the server type dropdown a new window will open which will prompt you for permission.

By default this will give you full access to your GDrive files and folders.

Ticking "Limited Access" will allow ShiftEdit to only access files that have been created or opened with ShiftEdit.

You can preview the files by locaing them on your computer and opening them in your browser.

 

Webdav

Webdav is set up in a similar way to FTP.

Amazon S3

The access key id and password are used to access S3.

To get your login go to aws console:
https://console.aws.amazon.com/

In the menu click your name (top right) -> security credentials -> Access keys
The access key id is your username. And the password is the password that goes with it.

S3 has some specific options in the advanced section:

Save files with public access

Tick this to enable files to be publicy accessible when saved.

Use compression

Tick this to gzip encode js/ css files when saved.

PHPMyAdmin

Phpmyadmin details can be added in the database section under Advanced when editing a site.

This will then enable a Database button when you Right click the site bar.

Clicking this will open a new window that is logged into Phpmyadmin.

Import

Site definitions can be imported from Dreamweaver and Filezilla.

Site bar -> Add site -> Import

Master password

A master password can be used to encrypt all your server passwords. Should a hacker ever obtain the encrypted passwords they would not be able to decrypt them without your master password.

You can set a master password from Gear icon -> Preferences -> Security. Once the master password is set any passwords that are stored will be encrypted using your master password.

A hash of the master password is stored in a cookie, so only needs to be re-entered when connecting from a new machine.