GithubHelp home page GithubHelp logo

isabella232 / perfect-ubuntu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from perfectlysoft/perfect-ubuntu

0.0 0.0 0.0 15 KB

Install Swift and Perfect dependencies into an Ubuntu 16.04 system.

Home Page: https://www.perfect.org

Shell 100.00%

perfect-ubuntu's Introduction

Install Swift 4.0.3 into an Ubuntu 16.04 System

Get Involed with Perfect!

Star Perfect On Github Stack Overflow Follow Perfect on Twitter Join the Perfect Slack

Swift 4.0 Platforms OS X | Linux License Apache PerfectlySoft Twitter Slack Status

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 <executable-reference>

[Service]
Type=simple
WorkingDirectory=/perfect-deployed/<directory-name>
ExecStart=/perfect-deployed/<directory-name>/<executable-name>
Restart=always
PIDFile=/var/run/<executable-reference>.pid

[Install]
WantedBy=multi-user.target

perfect-ubuntu's People

Contributors

iamjono avatar kjessup avatar michieldemey avatar rockfordwei avatar florianpfisterer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.