https://github.com/perfectlysoft/perfect-ubuntu
Install Swift and Perfect dependencies into an Ubuntu 16.04 system.
https://github.com/perfectlysoft/perfect-ubuntu
server-side-swift swift ubuntu
Last synced: 7 days ago
JSON representation
Install Swift and Perfect dependencies into an Ubuntu 16.04 system.
- Host: GitHub
- URL: https://github.com/perfectlysoft/perfect-ubuntu
- Owner: PerfectlySoft
- Created: 2016-08-10T21:16:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-02-27T05:59:51.000Z (about 6 years ago)
- Last Synced: 2025-04-08T18:51:24.345Z (about 1 month ago)
- Topics: server-side-swift, swift, ubuntu
- Language: Shell
- Homepage: https://www.perfect.org
- Size: 14.6 KB
- Stars: 35
- Watchers: 7
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Install Swift 4.0.3 into an Ubuntu 16.04 System
This project includes a script which will install Swift and all major dependencies for Perfect directly into your Ubuntu system. The account using the script will require administrative privileges. You can invoke the script by using the following commands:
```
git clone https://github.com/PerfectlySoft/Perfect-Ubuntu.git
cd Perfect-Ubuntu/
chmod +x ./install.sh
sudo ./install.sh --sure
```Note that this also includes the client libraries for `sqlite3`, `postgres`, `mysql`, `mongodb` - not the servers.
Once this has been completed, you can now build. For example:
```
# Optional: execute if you are still in the Perfect-Ubuntu directory!
cd ../# clone a project
git clone https://github.com/PerfectExamples/Perfect-Session-PostgreSQL-Demo.git# enter the directory
cd Perfect-Session-PostgreSQL-Demo/# build the project
swift build -c release
```Once the project has successfully built, you will see the last line is:
```
Linking ./.build/release/Perfect-Session-PostgreSQL-Demo
```Also included in this repository is a sample Service file, `perfect-app-template.service`
To change this to your work for your own executable, change the file to values appropriate to your situation.
```
[Unit]
Description=Perfect deployed[Service]
Type=simple
WorkingDirectory=/perfect-deployed/
ExecStart=/perfect-deployed//
Restart=always
PIDFile=/var/run/.pid[Install]
WantedBy=multi-user.target
```